< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java

Print this page




 543     /**
 544      * Invalidates the profiling information for {@code method} and (re)initializes it such that
 545      * profiling restarts upon its next invocation.
 546      */
 547     native void reprofile(HotSpotResolvedJavaMethodImpl method);
 548 
 549     /**
 550      * Invalidates {@code nmethodMirror} such that {@link InvalidInstalledCodeException} will be
 551      * raised the next time {@code nmethodMirror} is {@linkplain #executeHotSpotNmethod executed}.
 552      * The {@code nmethod} associated with {@code nmethodMirror} is also made non-entrant and any
 553      * current activations of the {@code nmethod} are deoptimized.
 554      */
 555     native void invalidateHotSpotNmethod(HotSpotNmethod nmethodMirror);
 556 
 557     /**
 558      * Collects the current values of all JVMCI benchmark counters, summed up over all threads.
 559      */
 560     native long[] collectCounters();
 561 
 562     /**
 563      * Get the current number of counters allocated for use by JVMCI. Should be the same value as
 564      * the flag {@code JVMCICounterSize}.
 565      */
 566     native int getCountersSize();
 567 
 568     /**
 569      * Attempt to change the size of the counters allocated for JVMCI. This requires a safepoint to
 570      * safely reallocate the storage but it's advisable to increase the size in reasonable chunks.
 571      */
 572     native boolean setCountersSize(int newSize);
 573 
 574     /**
 575      * Determines if {@code metaspaceMethodData} is mature.
 576      */
 577     native boolean isMature(long metaspaceMethodData);
 578 
 579     /**
 580      * Generate a unique id to identify the result of the compile.
 581      */
 582     native int allocateCompileId(HotSpotResolvedJavaMethodImpl method, int entryBCI);
 583 
 584     /**
 585      * Determines if {@code method} has OSR compiled code identified by {@code entryBCI} for
 586      * compilation level {@code level}.
 587      */
 588     native boolean hasCompiledCodeForOSR(HotSpotResolvedJavaMethodImpl method, int entryBCI, int level);
 589 
 590     /**
 591      * Gets the value of {@code metaspaceSymbol} as a String.
 592      */
 593     native String getSymbol(long metaspaceSymbol);
 594 




 543     /**
 544      * Invalidates the profiling information for {@code method} and (re)initializes it such that
 545      * profiling restarts upon its next invocation.
 546      */
 547     native void reprofile(HotSpotResolvedJavaMethodImpl method);
 548 
 549     /**
 550      * Invalidates {@code nmethodMirror} such that {@link InvalidInstalledCodeException} will be
 551      * raised the next time {@code nmethodMirror} is {@linkplain #executeHotSpotNmethod executed}.
 552      * The {@code nmethod} associated with {@code nmethodMirror} is also made non-entrant and any
 553      * current activations of the {@code nmethod} are deoptimized.
 554      */
 555     native void invalidateHotSpotNmethod(HotSpotNmethod nmethodMirror);
 556 
 557     /**
 558      * Collects the current values of all JVMCI benchmark counters, summed up over all threads.
 559      */
 560     native long[] collectCounters();
 561 
 562     /**












 563      * Determines if {@code metaspaceMethodData} is mature.
 564      */
 565     native boolean isMature(long metaspaceMethodData);
 566 
 567     /**
 568      * Generate a unique id to identify the result of the compile.
 569      */
 570     native int allocateCompileId(HotSpotResolvedJavaMethodImpl method, int entryBCI);
 571 
 572     /**
 573      * Determines if {@code method} has OSR compiled code identified by {@code entryBCI} for
 574      * compilation level {@code level}.
 575      */
 576     native boolean hasCompiledCodeForOSR(HotSpotResolvedJavaMethodImpl method, int entryBCI, int level);
 577 
 578     /**
 579      * Gets the value of {@code metaspaceSymbol} as a String.
 580      */
 581     native String getSymbol(long metaspaceSymbol);
 582 


< prev index next >