Integrated: 8253970: Build error: address argument to atomic builtin must be a pointer to integer or pointer ('volatile narrowOop *' invalid)

Jie Fu jiefu at openjdk.java.net
Mon Oct 19 13:23:11 UTC 2020


On Sat, 3 Oct 2020 13:29:03 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> __sync_val_compare_and_swap shouldn't call with narrowOop* for clang after JDK-8247912.
> Before passing type T to __sync_val_compare_and_swap, the fix converts T to uint32_t* if sizeof(T) == 4.
> 
> Testing:
>  - Zero VM build on Linux and MacOS with clang
>  - Zero VM build on Linux with gcc

This pull request has now been integrated.

Changeset: cb7701b7
Author:    Jie Fu <jiefu at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/cb7701b7
Stats:     29 lines in 2 files changed: 23 ins; 0 del; 6 mod

8253970: Build error: address argument to atomic builtin must be a pointer to integer or pointer ('volatile
narrowOop *' invalid)

Reviewed-by: kbarrett, dholmes

-------------

PR: https://git.openjdk.java.net/jdk/pull/496


More information about the hotspot-runtime-dev mailing list