Skip to content

Commit 261cb96

Browse files
Various fixes.
1 parent 6a1b793 commit 261cb96

File tree

12 files changed

+210
-111
lines changed

12 files changed

+210
-111
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
*/
2525
package com.oracle.svm.core.genscavenge;
2626

27-
import com.oracle.svm.core.SubstrateDiagnostics.ErrorContext;
2827
import org.graalvm.compiler.nodes.java.ArrayLengthNode;
2928
import org.graalvm.compiler.options.Option;
3029
import org.graalvm.compiler.word.Word;
@@ -34,9 +33,9 @@
3433
import org.graalvm.word.UnsignedWord;
3534
import org.graalvm.word.WordFactory;
3635

37-
import com.oracle.svm.core.SubstrateDiagnostics;
3836
import com.oracle.svm.core.SubstrateDiagnostics.DiagnosticThunk;
3937
import com.oracle.svm.core.SubstrateDiagnostics.DiagnosticThunkRegister;
38+
import com.oracle.svm.core.SubstrateDiagnostics.ErrorContext;
4039
import com.oracle.svm.core.annotate.AlwaysInline;
4140
import com.oracle.svm.core.annotate.NeverInline;
4241
import com.oracle.svm.core.annotate.RestrictHeapAccess;
@@ -134,7 +133,7 @@ public void noteObject(Object o) {
134133
}
135134

136135
@Override
137-
public int maxInvocations() {
136+
public int maxInvocationCount() {
138137
return 1;
139138
}
140139

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ private static Descriptor getTlabUnsafe(IsolateThread thread) {
787787

788788
private static class DumpHeapSettingsAndStatistics extends DiagnosticThunk {
789789
@Override
790-
public int maxInvocations() {
790+
public int maxInvocationCount() {
791791
return 1;
792792
}
793793

@@ -813,7 +813,7 @@ public void printDiagnostics(Log log, ErrorContext context, int maxDiagnosticLev
813813

814814
private static class DumpChunkInformation extends DiagnosticThunk {
815815
@Override
816-
public int maxInvocations() {
816+
public int maxInvocationCount() {
817817
return 1;
818818
}
819819

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public interface Descriptor extends PointerBase {
112112
* Don't read this value directly, use the {@link Uninterruptible} accessor methods instead.
113113
* This is necessary to avoid races between the GC and code that accesses or modifies the TLAB.
114114
*/
115-
private static final FastThreadLocalBytes<Descriptor> regularTLAB = FastThreadLocalFactory.createBytes(ThreadLocalAllocation::getRegularTLABSize).setMaxOffset(FastThreadLocal.BYTE_OFFSET);
115+
private static final FastThreadLocalBytes<Descriptor> regularTLAB = FastThreadLocalFactory.createBytes(ThreadLocalAllocation::getTlabDescriptorSize).setMaxOffset(FastThreadLocal.BYTE_OFFSET);
116116

117117
private ThreadLocalAllocation() {
118118
}
@@ -123,7 +123,7 @@ static Log log() {
123123
}
124124

125125
@Platforms(Platform.HOSTED_ONLY.class)
126-
private static int getRegularTLABSize() {
126+
private static int getTlabDescriptorSize() {
127127
return SizeOf.get(Descriptor.class);
128128
}
129129

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public final class YoungGeneration extends Generation {
6262
}
6363
}
6464

65+
@Uninterruptible(reason = "Called from uninterruptible code.", mayBeInlined = true)
6566
public int getMaxSurvivorSpaces() {
6667
return maxSurvivorSpaces;
6768
}

0 commit comments

Comments
 (0)