Skip to content

Commit 9b9c7f0

Browse files
committed
Fix after rebase
1 parent 3391118 commit 9b9c7f0

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

compiler/src/org.graalvm.compiler.hotspot.management.libgraal.processor/src/org/graalvm/compiler/hotspot/management/libgraal/processor/JMXFromLibGraalProcessor.java

Whitespace-only changes.

sdk/src/com.oracle.svm.core.annotate/src/com/oracle/svm/core/annotate/AutomaticFeature.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,16 @@
5353
* use {@code "--features <fqn.of.FeatureClass>"} in the {@code Args} of a
5454
* {@code native-image.properties} file to ensure a user-provided feature gets processed.
5555
*
56-
* Feature classes can use this annotation are unconditionally added when they are reachable on the
56+
* Feature classes that use this annotation are unconditionally added when they are reachable on the
5757
* class path.
5858
*
59+
* This annotation is deprecated because a full scan of the class path is necessary to find
60+
* annotated classes. This full classpath scanning will be removed in a future version of GraalVM,
61+
* which means that this annotation needs to be removed then too.
62+
*
5963
* @since 22.3
6064
*/
65+
@Deprecated(forRemoval = true)
6166
@Retention(RetentionPolicy.RUNTIME)
6267
@Target({ElementType.TYPE})
6368
@Platforms(Platform.HOSTED_ONLY.class)

substratevm/src/com.oracle.svm.core.genscavenge/src/com/oracle/svm/core/genscavenge/UseSerialOrEpsilonGC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import com.oracle.svm.core.SubstrateOptions;
3333

3434
@Platforms(Platform.HOSTED_ONLY.class)
35-
class UseSerialOrEpsilonGC implements BooleanSupplier {
35+
public class UseSerialOrEpsilonGC implements BooleanSupplier {
3636
@Override
3737
public boolean getAsBoolean() {
3838
return SubstrateOptions.UseSerialGC.getValue() || SubstrateOptions.UseEpsilonGC.getValue();

substratevm/src/com.oracle.svm.core.genscavenge/src/com/oracle/svm/core/genscavenge/graal/GenScavengeGCFeature.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.graalvm.compiler.phases.util.Providers;
3434
import org.graalvm.nativeimage.ImageSingletons;
3535
import org.graalvm.nativeimage.hosted.Feature;
36-
import org.graalvm.nativeimage.impl.PinnedObjectSupport;
3736

3837
import com.oracle.svm.core.SubstrateOptions;
3938
import com.oracle.svm.core.feature.AutomaticallyRegisteredFeature;
@@ -45,7 +44,6 @@
4544
import com.oracle.svm.core.genscavenge.ImageHeapInfo;
4645
import com.oracle.svm.core.genscavenge.IncrementalGarbageCollectorMXBean;
4746
import com.oracle.svm.core.genscavenge.LinearImageHeapLayouter;
48-
import com.oracle.svm.core.genscavenge.PinnedObjectImpl.PinnedObjectSupportImpl;
4947
import com.oracle.svm.core.genscavenge.jvmstat.EpsilonGCPerfData;
5048
import com.oracle.svm.core.genscavenge.jvmstat.SerialGCPerfData;
5149
import com.oracle.svm.core.genscavenge.remset.CardTableBasedRememberedSet;
@@ -71,7 +69,7 @@
7169
class GenScavengeGCFeature implements InternalFeature {
7270
@Override
7371
public boolean isInConfiguration(IsInConfigurationAccess access) {
74-
return SubstrateOptions.UseSerialGC.getValue() || SubstrateOptions.UseEpsilonGC.getValue();
72+
return new com.oracle.svm.core.genscavenge.UseSerialOrEpsilonGC().getAsBoolean();
7573
}
7674

7775
@Override
@@ -96,7 +94,6 @@ public void duringSetup(DuringSetupAccess access) {
9694
managementSupport.addPlatformManagedObjectSingleton(java.lang.management.MemoryMXBean.class, new HeapImplMemoryMXBean());
9795
managementSupport.addPlatformManagedObjectList(com.sun.management.GarbageCollectorMXBean.class, Arrays.asList(new IncrementalGarbageCollectorMXBean(), new CompleteGarbageCollectorMXBean()));
9896

99-
ImageSingletons.add(PinnedObjectSupport.class, new PinnedObjectSupportImpl());
10097
if (ImageSingletons.contains(PerfManager.class)) {
10198
ImageSingletons.lookup(PerfManager.class).register(createPerfData());
10299
}

substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/darwin/DarwinLibCSupport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
import com.oracle.svm.core.Uninterruptible;
2828
import com.oracle.svm.core.feature.AutomaticallyRegisteredImageSingleton;
29+
import com.oracle.svm.core.headers.LibCSupport;
2930
import com.oracle.svm.core.posix.PosixLibCSupport;
3031
import com.oracle.svm.core.posix.headers.darwin.DarwinErrno;
3132

0 commit comments

Comments
 (0)