498 = Arrays.asList(this::getMethodBooleanOption, this::getMethodIntxOption,
499 this::getMethodUintxOption, this::getMethodDoubleOption,
500 this::getMethodStringOption);
501
502 public Object getMethodOption(Executable method, String name) {
503 return methodOptionGetters.stream()
504 .map(f -> f.apply(method, name))
505 .filter(x -> x != null)
506 .findAny()
507 .orElse(null);
508 }
509
510 // Safepoint Checking
511 public native void assertMatchingSafepointCalls(boolean mutexSafepointValue, boolean attemptedNoSafepointValue);
512
513 // Sharing & archiving
514 public native boolean isShared(Object o);
515 public native boolean isSharedClass(Class<?> c);
516 public native boolean areSharedStringsIgnored();
517 public native boolean isCDSIncludedInVmBuild();
518 public native boolean isJavaHeapArchiveSupported();
519 public native Object getResolvedReferences(Class<?> c);
520 public native boolean areOpenArchiveHeapObjectsMapped();
521
522 // Compiler Directive
523 public native int addCompilerDirective(String compDirect);
524 public native void removeCompilerDirective(int count);
525
526 // Handshakes
527 public native int handshakeWalkStack(Thread t, boolean all_threads);
528
529 // Returns true on linux if library has the noexecstack flag set.
530 public native boolean checkLibSpecifiesNoexecstack(String libfilename);
531
532 // Container testing
533 public native boolean isContainerized();
534 public native void printOsInfo();
535
536 // Decoder
537 public native void disableElfSectionCache();
|
498 = Arrays.asList(this::getMethodBooleanOption, this::getMethodIntxOption,
499 this::getMethodUintxOption, this::getMethodDoubleOption,
500 this::getMethodStringOption);
501
502 public Object getMethodOption(Executable method, String name) {
503 return methodOptionGetters.stream()
504 .map(f -> f.apply(method, name))
505 .filter(x -> x != null)
506 .findAny()
507 .orElse(null);
508 }
509
510 // Safepoint Checking
511 public native void assertMatchingSafepointCalls(boolean mutexSafepointValue, boolean attemptedNoSafepointValue);
512
513 // Sharing & archiving
514 public native boolean isShared(Object o);
515 public native boolean isSharedClass(Class<?> c);
516 public native boolean areSharedStringsIgnored();
517 public native boolean isCDSIncludedInVmBuild();
518 public native boolean isJFRIncludedInVmBuild();
519 public native boolean isJavaHeapArchiveSupported();
520 public native Object getResolvedReferences(Class<?> c);
521 public native boolean areOpenArchiveHeapObjectsMapped();
522
523 // Compiler Directive
524 public native int addCompilerDirective(String compDirect);
525 public native void removeCompilerDirective(int count);
526
527 // Handshakes
528 public native int handshakeWalkStack(Thread t, boolean all_threads);
529
530 // Returns true on linux if library has the noexecstack flag set.
531 public native boolean checkLibSpecifiesNoexecstack(String libfilename);
532
533 // Container testing
534 public native boolean isContainerized();
535 public native void printOsInfo();
536
537 // Decoder
538 public native void disableElfSectionCache();
|