APIdia Launch Partner
Top Description Methods
jdk.internal.vm.annotation

public @Interface ReservedStackAccess

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD, CONSTRUCTOR
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

An annotation expressing that a method is especially sensitive to stack overflows. This is a hint the JVM can use to grant access to extra stack space when executing this code if such feature is supported by the JVM. The JVM is free to ignore this annotation. A possible way for the JVM to improve the execution context for methods with this annotation is to reserve part of the thread's execution stack for them. Access to this section of the stack would be denied by default but could be granted if the JVM detects a possible stack overflow and the thread's call stack includes at least one annotated method. Even if access to this reserved area has been granted, the JVM might decide to throw a delayed StackOverflowError when the thread exits the annotated method.

Since
9

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString