RFR: 8242440: use separate, destroyable JavaVM instances per libgraal compiler thread [v2]
Doug Simon
dnsimon at openjdk.java.net
Tue Apr 19 10:11:06 UTC 2022
On Mon, 18 Apr 2022 04:49:20 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
>> Interesting proposal. What would be the advantage of `OopHandle` over `jobject`? That require a bunch of `reinterpret_cast`ing between `jobject` and `OopHandle` which I'm not sure is even possible?
>
> The suggestion was about managing the handles and associated values (and I'm not even sure it would help there). But maybe `jobject` is too deeply embedded in JVMCI usage? Or maybe there are places where it really needs to be using `jobject` rather than `oop*` or a thin wrapper over `oop*` like `OopHandle`?
I'm avoiding `jobject` altogether now: https://github.com/openjdk/jdk/pull/8262/commits/fc9dd87fe87271c33f9861e97c84d1cc681e40c6
-------------
PR: https://git.openjdk.java.net/jdk/pull/8262
More information about the hotspot-dev
mailing list