This commit is contained in:
Jesper Wilhelmsson 2023-01-07 02:05:59 +00:00
commit 5393dc9a48
10 changed files with 54 additions and 15 deletions

View file

@ -345,6 +345,7 @@ public sealed interface Linker permits AbstractLinker {
* }
* }
*/
@PreviewFeature(feature=PreviewFeature.Feature.FOREIGN)
sealed interface CaptureCallState extends Option
permits LinkerOptions.CaptureCallStateImpl {
/**

View file

@ -129,7 +129,7 @@ public non-sealed class LinuxAArch64VaList implements VaList {
}
private static MemorySegment emptyListAddress() {
MemorySegment ms = MemorySegment.allocateNative(LAYOUT, SegmentScope.auto());
MemorySegment ms = MemorySegment.allocateNative(LAYOUT, SegmentScope.global());
VH_stack.set(ms, MemorySegment.NULL);
VH_gr_top.set(ms, MemorySegment.NULL);
VH_vr_top.set(ms, MemorySegment.NULL);

View file

@ -138,7 +138,7 @@ public non-sealed class SysVVaList implements VaList {
}
private static MemorySegment emptyListAddress() {
MemorySegment base = MemorySegment.allocateNative(LAYOUT, SegmentScope.auto());
MemorySegment base = MemorySegment.allocateNative(LAYOUT, SegmentScope.global());
VH_gp_offset.set(base, MAX_GP_OFFSET);
VH_fp_offset.set(base, MAX_FP_OFFSET);
VH_overflow_arg_area.set(base, MemorySegment.NULL);