This reverts commit a2f9166fc80b4708d3c854e1d86c069968aa2b7d.
I'm backing out the fix for:
[JDK-8379007](https://bugs.openjdk.org/browse/JDK-8379007) [lworld] JNI
NewWeakGlobalRef should throw IdentityException for value types
due to unexpected test failures in the Valhalla CI. At least some of the
failures in Tier3 are occurring without the --enable-preview option.
-------------
Commit messages:
- 8379328: [lworld] [BACKOUT] JNI NewWeakGlobalRef should throw
IdentityException for value types
Changes: https://git.openjdk.org/valhalla/pull/2201/files
Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2201&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8379328
Stats: 104 lines in 3 files changed: 0 ins; 104 del; 0 mod
Patch: https://git.openjdk.org/valhalla/pull/2201.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2201/head:pull/2201
PR: https://git.openjdk.org/valhalla/pull/2201