Skip to content

Add support for solaris atomicops#32

Merged
xfxyjwf merged 3 commits intoprotocolbuffers:masterfrom
worr:bug/solaris-atomicops
Sep 23, 2014
Merged

Add support for solaris atomicops#32
xfxyjwf merged 3 commits intoprotocolbuffers:masterfrom
worr:bug/solaris-atomicops

Conversation

@worr
Copy link
Copy Markdown
Contributor

@worr worr commented Sep 20, 2014

This patch adds support for atomic operations on Solaris, on any platform.
It makes use of the atomic functions made available in Solaris' atomic.h
header.

This patch adds support for atomic operations on Solaris, on any platform.
It makes use of the atomic functions made available in Solaris' atomic.h
header.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update this copyright notice and remove lines that have "Protocol Buffers", "Google"?

@worr
Copy link
Copy Markdown
Contributor Author

worr commented Sep 22, 2014

Should be good now

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was suggesting putting yourself as the copyright owner and removing "Google Inc.", "Google Protocol Buffers" to avoid confusion. Note that putting "Google Inc." here does not affect your rights.

Let me know if you want to use your own name, or is fine with using "Google Inc.".

@worr
Copy link
Copy Markdown
Contributor Author

worr commented Sep 23, 2014

I'm fine with Google Inc.

@liujisi
Copy link
Copy Markdown
Contributor

liujisi commented Sep 23, 2014

Can you also change CONTRIBUTORS.txt and add yourself to the "patches" section? Thanks!

@worr
Copy link
Copy Markdown
Contributor Author

worr commented Sep 23, 2014

Added myself

xfxyjwf added a commit that referenced this pull request Sep 23, 2014
Add support for solaris atomicops
@xfxyjwf xfxyjwf merged commit a9155b8 into protocolbuffers:master Sep 23, 2014
TeBoring pushed a commit to TeBoring/protobuf that referenced this pull request Jan 19, 2019
Moved lunit to third_party for Google compliance.
copybara-service bot pushed a commit that referenced this pull request Oct 10, 2024
…um value is detected.

This should never happen, so I don't think it matters much exactly what kind of
exception we throw. We could even arguably return null, but this option saves a
lot of space while still preserving some error checking.

See https://godbolt.org/z/jKhcKs3x1 for code gen.

This generates much tighter bytecode and ARM assembly than alternatives.

As this code is generated many times over, small wins in code size here can
reduce icache pressure, APK size, and OAT size.

This java code:

```java
  Object uoe() {
       throw new UnsupportedOperationException();
  }
  Object npe2() {
    throw null;
  }
```

Generates this dex code:

```
.method uoe()Ljava/lang/Object;
    new-instance v0, Ljava/lang/UnsupportedOperationException;
    invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
    throw v0
.end method

.method npe2()Ljava/lang/Object;
    const/4 v0, 0x0
    throw v0
.end method
```

Which generates this OAT code:

```
java.lang.Object SomeProto.uoe() [84 bytes]
    0x000081c0    sub x16, sp, #0x2000 (8192)
    0x000081c4    ldr wzr, [x16]
     StackMap[0]   native_pc=0x41c8, dex_pc=0x0, register_mask=0x0, stack_mask=0b
    0x000081c8    str x0, [sp, #-48]!
    0x000081cc    str x22, [sp, #24]
    0x000081d0    stp x23, lr, [sp, #32]
    0x000081d4    ldr x21, [x21]
     StackMap[1]   native_pc=0x41d8, dex_pc=0x0, register_mask=0x2, stack_mask=0b
    0x000081d8    mov x22, x1
    0x000081dc    adrp x0, #+0x4000 (addr 0x0000c000)
    0x000081e0    ldr w0, [x0, #4]
    0x000081e4    ldr lr, [tr, #464] ; pAllocObjectInitialized
    0x000081e8    blr lr
     StackMap[2]   native_pc=0x41ec, dex_pc=0x0, register_mask=0x400000, stack_mask=0b
    0x000081ec    dmb ishst
    0x000081f0    mov x1, x0
    0x000081f4    mov x23, x1
    0x000081f8    adrp x0, #+0x4000 (addr 0x0000c000)
    0x000081fc    ldr w0, [x0, #12]
    0x00008200    ldr lr, [x0, #24]
    0x00008204    blr lr
     StackMap[3]   native_pc=0x4208, dex_pc=0x2, register_mask=0xc00000, stack_mask=0b
    0x00008208    mov x0, x23
    0x0000820c    ldr lr, [tr, #1264] ; pDeliverException
    0x00008210    blr lr
     StackMap[4]   native_pc=0x4214, dex_pc=0x5, register_mask=0xc00000, stack_mask=0b

java.lang.Object SomeProto.npe2() [36 bytes]
    0x000080d0    sub x16, sp, #0x2000 (8192)
    0x000080d4    ldr wzr, [x16]
     StackMap[0]   native_pc=0x40d8, dex_pc=0x0, register_mask=0x0, stack_mask=0b
    0x000080d8    str x0, [sp, #-32]!
    0x000080dc    stp x22, lr, [sp, #16]
    0x000080e0    ldr x21, [x21]
     StackMap[1]   native_pc=0x40e4, dex_pc=0x0, register_mask=0x2, stack_mask=0b
    0x000080e4    mov x22, x1
    0x000080e8    mov w0, #0x0
    0x000080ec    ldr lr, [tr, #1264] ; pDeliverException
    0x000080f0    blr lr
     StackMap[2]   native_pc=0x40f4, dex_pc=0x1, register_mask=0x400000, stack_mask=0b
```

This saves 84-36 = 48 bytes of OAT per method.

PiperOrigin-RevId: 684258075
copybara-service bot pushed a commit that referenced this pull request Oct 10, 2024
…um value is detected.

This should never happen, so I don't think it matters much exactly what kind of
exception we throw. We could even arguably return null, but this option saves a
lot of space while still preserving some error checking.

See https://godbolt.org/z/jKhcKs3x1 for code gen.

This generates much tighter bytecode and ARM assembly than alternatives.

As this code is generated many times over, small wins in code size here can
reduce icache pressure, APK size, and OAT size.

This java code:

```java
  Object uoe() {
       throw new UnsupportedOperationException();
  }
  Object npe2() {
    throw null;
  }
```

Generates this dex code:

```
.method uoe()Ljava/lang/Object;
    new-instance v0, Ljava/lang/UnsupportedOperationException;
    invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
    throw v0
.end method

.method npe2()Ljava/lang/Object;
    const/4 v0, 0x0
    throw v0
.end method
```

Which generates this OAT code:

```
java.lang.Object SomeProto.uoe() [84 bytes]
    0x000081c0    sub x16, sp, #0x2000 (8192)
    0x000081c4    ldr wzr, [x16]
     StackMap[0]   native_pc=0x41c8, dex_pc=0x0, register_mask=0x0, stack_mask=0b
    0x000081c8    str x0, [sp, #-48]!
    0x000081cc    str x22, [sp, #24]
    0x000081d0    stp x23, lr, [sp, #32]
    0x000081d4    ldr x21, [x21]
     StackMap[1]   native_pc=0x41d8, dex_pc=0x0, register_mask=0x2, stack_mask=0b
    0x000081d8    mov x22, x1
    0x000081dc    adrp x0, #+0x4000 (addr 0x0000c000)
    0x000081e0    ldr w0, [x0, #4]
    0x000081e4    ldr lr, [tr, #464] ; pAllocObjectInitialized
    0x000081e8    blr lr
     StackMap[2]   native_pc=0x41ec, dex_pc=0x0, register_mask=0x400000, stack_mask=0b
    0x000081ec    dmb ishst
    0x000081f0    mov x1, x0
    0x000081f4    mov x23, x1
    0x000081f8    adrp x0, #+0x4000 (addr 0x0000c000)
    0x000081fc    ldr w0, [x0, #12]
    0x00008200    ldr lr, [x0, #24]
    0x00008204    blr lr
     StackMap[3]   native_pc=0x4208, dex_pc=0x2, register_mask=0xc00000, stack_mask=0b
    0x00008208    mov x0, x23
    0x0000820c    ldr lr, [tr, #1264] ; pDeliverException
    0x00008210    blr lr
     StackMap[4]   native_pc=0x4214, dex_pc=0x5, register_mask=0xc00000, stack_mask=0b

java.lang.Object SomeProto.npe2() [36 bytes]
    0x000080d0    sub x16, sp, #0x2000 (8192)
    0x000080d4    ldr wzr, [x16]
     StackMap[0]   native_pc=0x40d8, dex_pc=0x0, register_mask=0x0, stack_mask=0b
    0x000080d8    str x0, [sp, #-32]!
    0x000080dc    stp x22, lr, [sp, #16]
    0x000080e0    ldr x21, [x21]
     StackMap[1]   native_pc=0x40e4, dex_pc=0x0, register_mask=0x2, stack_mask=0b
    0x000080e4    mov x22, x1
    0x000080e8    mov w0, #0x0
    0x000080ec    ldr lr, [tr, #1264] ; pDeliverException
    0x000080f0    blr lr
     StackMap[2]   native_pc=0x40f4, dex_pc=0x1, register_mask=0x400000, stack_mask=0b
```

This saves 84-36 = 48 bytes of OAT per method.

PiperOrigin-RevId: 684258075
copybara-service bot pushed a commit that referenced this pull request Oct 10, 2024
…um value is detected.

This should never happen, so I don't think it matters much exactly what kind of
exception we throw. We could even arguably return null, but this option saves a
lot of space while still preserving some error checking.

See https://godbolt.org/z/jKhcKs3x1 for code gen.

This generates much tighter bytecode and ARM assembly than alternatives.

As this code is generated many times over, small wins in code size here can
reduce icache pressure, APK size, and OAT size.

This java code:

```java
  Object uoe() {
       throw new UnsupportedOperationException();
  }
  Object npe2() {
    throw null;
  }
```

Generates this dex code:

```
.method uoe()Ljava/lang/Object;
    new-instance v0, Ljava/lang/UnsupportedOperationException;
    invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
    throw v0
.end method

.method npe2()Ljava/lang/Object;
    const/4 v0, 0x0
    throw v0
.end method
```

Which generates this OAT code:

```
java.lang.Object SomeProto.uoe() [84 bytes]
    0x000081c0    sub x16, sp, #0x2000 (8192)
    0x000081c4    ldr wzr, [x16]
     StackMap[0]   native_pc=0x41c8, dex_pc=0x0, register_mask=0x0, stack_mask=0b
    0x000081c8    str x0, [sp, #-48]!
    0x000081cc    str x22, [sp, #24]
    0x000081d0    stp x23, lr, [sp, #32]
    0x000081d4    ldr x21, [x21]
     StackMap[1]   native_pc=0x41d8, dex_pc=0x0, register_mask=0x2, stack_mask=0b
    0x000081d8    mov x22, x1
    0x000081dc    adrp x0, #+0x4000 (addr 0x0000c000)
    0x000081e0    ldr w0, [x0, #4]
    0x000081e4    ldr lr, [tr, #464] ; pAllocObjectInitialized
    0x000081e8    blr lr
     StackMap[2]   native_pc=0x41ec, dex_pc=0x0, register_mask=0x400000, stack_mask=0b
    0x000081ec    dmb ishst
    0x000081f0    mov x1, x0
    0x000081f4    mov x23, x1
    0x000081f8    adrp x0, #+0x4000 (addr 0x0000c000)
    0x000081fc    ldr w0, [x0, #12]
    0x00008200    ldr lr, [x0, #24]
    0x00008204    blr lr
     StackMap[3]   native_pc=0x4208, dex_pc=0x2, register_mask=0xc00000, stack_mask=0b
    0x00008208    mov x0, x23
    0x0000820c    ldr lr, [tr, #1264] ; pDeliverException
    0x00008210    blr lr
     StackMap[4]   native_pc=0x4214, dex_pc=0x5, register_mask=0xc00000, stack_mask=0b

java.lang.Object SomeProto.npe2() [36 bytes]
    0x000080d0    sub x16, sp, #0x2000 (8192)
    0x000080d4    ldr wzr, [x16]
     StackMap[0]   native_pc=0x40d8, dex_pc=0x0, register_mask=0x0, stack_mask=0b
    0x000080d8    str x0, [sp, #-32]!
    0x000080dc    stp x22, lr, [sp, #16]
    0x000080e0    ldr x21, [x21]
     StackMap[1]   native_pc=0x40e4, dex_pc=0x0, register_mask=0x2, stack_mask=0b
    0x000080e4    mov x22, x1
    0x000080e8    mov w0, #0x0
    0x000080ec    ldr lr, [tr, #1264] ; pDeliverException
    0x000080f0    blr lr
     StackMap[2]   native_pc=0x40f4, dex_pc=0x1, register_mask=0x400000, stack_mask=0b
```

This saves 84-36 = 48 bytes of OAT per method.

PiperOrigin-RevId: 684258075
copybara-service bot pushed a commit that referenced this pull request Oct 10, 2024
…um value is detected.

This should never happen, so I don't think it matters much exactly what kind of
exception we throw. We could even arguably return null, but this option saves a
lot of space while still preserving some error checking.

See https://godbolt.org/z/jKhcKs3x1 for code gen.

This generates much tighter bytecode and ARM assembly than alternatives.

As this code is generated many times over, small wins in code size here can
reduce icache pressure, APK size, and OAT size.

This java code:

```java
  Object uoe() {
       throw new UnsupportedOperationException();
  }
  Object npe2() {
    throw null;
  }
```

Generates this dex code:

```
.method uoe()Ljava/lang/Object;
    new-instance v0, Ljava/lang/UnsupportedOperationException;
    invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
    throw v0
.end method

.method npe2()Ljava/lang/Object;
    const/4 v0, 0x0
    throw v0
.end method
```

Which generates this OAT code:

```
java.lang.Object SomeProto.uoe() [84 bytes]
    0x000081c0    sub x16, sp, #0x2000 (8192)
    0x000081c4    ldr wzr, [x16]
     StackMap[0]   native_pc=0x41c8, dex_pc=0x0, register_mask=0x0, stack_mask=0b
    0x000081c8    str x0, [sp, #-48]!
    0x000081cc    str x22, [sp, #24]
    0x000081d0    stp x23, lr, [sp, #32]
    0x000081d4    ldr x21, [x21]
     StackMap[1]   native_pc=0x41d8, dex_pc=0x0, register_mask=0x2, stack_mask=0b
    0x000081d8    mov x22, x1
    0x000081dc    adrp x0, #+0x4000 (addr 0x0000c000)
    0x000081e0    ldr w0, [x0, #4]
    0x000081e4    ldr lr, [tr, #464] ; pAllocObjectInitialized
    0x000081e8    blr lr
     StackMap[2]   native_pc=0x41ec, dex_pc=0x0, register_mask=0x400000, stack_mask=0b
    0x000081ec    dmb ishst
    0x000081f0    mov x1, x0
    0x000081f4    mov x23, x1
    0x000081f8    adrp x0, #+0x4000 (addr 0x0000c000)
    0x000081fc    ldr w0, [x0, #12]
    0x00008200    ldr lr, [x0, #24]
    0x00008204    blr lr
     StackMap[3]   native_pc=0x4208, dex_pc=0x2, register_mask=0xc00000, stack_mask=0b
    0x00008208    mov x0, x23
    0x0000820c    ldr lr, [tr, #1264] ; pDeliverException
    0x00008210    blr lr
     StackMap[4]   native_pc=0x4214, dex_pc=0x5, register_mask=0xc00000, stack_mask=0b

java.lang.Object SomeProto.npe2() [36 bytes]
    0x000080d0    sub x16, sp, #0x2000 (8192)
    0x000080d4    ldr wzr, [x16]
     StackMap[0]   native_pc=0x40d8, dex_pc=0x0, register_mask=0x0, stack_mask=0b
    0x000080d8    str x0, [sp, #-32]!
    0x000080dc    stp x22, lr, [sp, #16]
    0x000080e0    ldr x21, [x21]
     StackMap[1]   native_pc=0x40e4, dex_pc=0x0, register_mask=0x2, stack_mask=0b
    0x000080e4    mov x22, x1
    0x000080e8    mov w0, #0x0
    0x000080ec    ldr lr, [tr, #1264] ; pDeliverException
    0x000080f0    blr lr
     StackMap[2]   native_pc=0x40f4, dex_pc=0x1, register_mask=0x400000, stack_mask=0b
```

This saves 84-36 = 48 bytes of OAT per method.

PiperOrigin-RevId: 684620833
copybara-service bot pushed a commit that referenced this pull request Feb 19, 2026
The next line: ConcurrentHashMap.get, already checks if the argument is
null.

This should save us one instruction on the hot path of this hot method.

Before:

```
    CODE: (code_offset=0x00368e80 size=192)...
      0x00368e80: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368e84: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368e88, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368e88: f81d0fe0  str x0, [sp, #-48]!
      0x00368e8c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368e90: a9027bf8  stp x24, lr, [sp, #32]
      0x00368e94: f94002b5  ldr x21, [x21]
        StackMap[1] (native_pc=0x368e98, dex_pc=0x0, register_mask=0x6, stack_mask=0b)
      0x00368e98: b940005f  ldr wzr, [x2]
```

The last line here will disappear. After:

```
    CODE: (code_offset=0x00368d40 size=188)...
      0x00368d40: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368d44: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368d48, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368d48: f81d0fe0  str x0, [sp, #-48]!
      0x00368d4c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368d50: a9027bf8  stp x24, lr, [sp, #32]
      0x00368d54: f94002b5  ldr x21, [x21]
```

PiperOrigin-RevId: 872154535
copybara-service bot pushed a commit that referenced this pull request Feb 23, 2026
The next line: ConcurrentHashMap.get, already checks if the argument is
null.

This should save us one instruction on the hot path of this hot method.

Before:

```
    CODE: (code_offset=0x00368e80 size=192)...
      0x00368e80: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368e84: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368e88, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368e88: f81d0fe0  str x0, [sp, #-48]!
      0x00368e8c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368e90: a9027bf8  stp x24, lr, [sp, #32]
      0x00368e94: f94002b5  ldr x21, [x21]
        StackMap[1] (native_pc=0x368e98, dex_pc=0x0, register_mask=0x6, stack_mask=0b)
      0x00368e98: b940005f  ldr wzr, [x2]
```

The last line here will disappear. After:

```
    CODE: (code_offset=0x00368d40 size=188)...
      0x00368d40: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368d44: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368d48, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368d48: f81d0fe0  str x0, [sp, #-48]!
      0x00368d4c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368d50: a9027bf8  stp x24, lr, [sp, #32]
      0x00368d54: f94002b5  ldr x21, [x21]
```

PiperOrigin-RevId: 872154535
copybara-service bot pushed a commit that referenced this pull request Feb 23, 2026
The next line: ConcurrentHashMap.get, already checks if the argument is
null.

This should save us one instruction on the hot path of this hot method.

Before:

```
    CODE: (code_offset=0x00368e80 size=192)...
      0x00368e80: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368e84: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368e88, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368e88: f81d0fe0  str x0, [sp, #-48]!
      0x00368e8c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368e90: a9027bf8  stp x24, lr, [sp, #32]
      0x00368e94: f94002b5  ldr x21, [x21]
        StackMap[1] (native_pc=0x368e98, dex_pc=0x0, register_mask=0x6, stack_mask=0b)
      0x00368e98: b940005f  ldr wzr, [x2]
```

The last line here will disappear. After:

```
    CODE: (code_offset=0x00368d40 size=188)...
      0x00368d40: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368d44: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368d48, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368d48: f81d0fe0  str x0, [sp, #-48]!
      0x00368d4c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368d50: a9027bf8  stp x24, lr, [sp, #32]
      0x00368d54: f94002b5  ldr x21, [x21]
```

PiperOrigin-RevId: 872154535
copybara-service bot pushed a commit that referenced this pull request Feb 24, 2026
The next line: ConcurrentHashMap.get, already checks if the argument is
null.

This should save us one instruction on the hot path of this hot method.

Before:

```
    CODE: (code_offset=0x00368e80 size=192)...
      0x00368e80: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368e84: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368e88, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368e88: f81d0fe0  str x0, [sp, #-48]!
      0x00368e8c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368e90: a9027bf8  stp x24, lr, [sp, #32]
      0x00368e94: f94002b5  ldr x21, [x21]
        StackMap[1] (native_pc=0x368e98, dex_pc=0x0, register_mask=0x6, stack_mask=0b)
      0x00368e98: b940005f  ldr wzr, [x2]
```

The last line here will disappear. After:

```
    CODE: (code_offset=0x00368d40 size=188)...
      0x00368d40: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368d44: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368d48, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368d48: f81d0fe0  str x0, [sp, #-48]!
      0x00368d4c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368d50: a9027bf8  stp x24, lr, [sp, #32]
      0x00368d54: f94002b5  ldr x21, [x21]
```

PiperOrigin-RevId: 872154535
copybara-service bot pushed a commit that referenced this pull request Feb 24, 2026
The next line: ConcurrentHashMap.get, already checks if the argument is
null.

This should save us one instruction on the hot path of this hot method.

Before:

```
    CODE: (code_offset=0x00368e80 size=192)...
      0x00368e80: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368e84: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368e88, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368e88: f81d0fe0  str x0, [sp, #-48]!
      0x00368e8c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368e90: a9027bf8  stp x24, lr, [sp, #32]
      0x00368e94: f94002b5  ldr x21, [x21]
        StackMap[1] (native_pc=0x368e98, dex_pc=0x0, register_mask=0x6, stack_mask=0b)
      0x00368e98: b940005f  ldr wzr, [x2]
```

The last line here will disappear. After:

```
    CODE: (code_offset=0x00368d40 size=188)...
      0x00368d40: d1400bf0  sub x16, sp, #0x2000 (8192)
      0x00368d44: b940021f  ldr wzr, [x16]
        StackMap[0] (native_pc=0x368d48, dex_pc=0x0, register_mask=0x0, stack_mask=0b)
      0x00368d48: f81d0fe0  str x0, [sp, #-48]!
      0x00368d4c: a9015ff6  stp x22, x23, [sp, #16]
      0x00368d50: a9027bf8  stp x24, lr, [sp, #32]
      0x00368d54: f94002b5  ldr x21, [x21]
```

PiperOrigin-RevId: 874804725
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants