Can anybody help me with this porting problem?

steve goldman Steve.Goldman at Sun.COM
Thu Aug 9 05:58:14 PDT 2007


chenjie wrote:
> Thank you everybody, I have find the reason, it is really a stupid
> error. when return from
> native in native_wrapper, if the return value is a oop type, it is
> really the oop 's handle
> (address), So it needs to load the real oop from the oop addr, I forget
> to load it but use the
> return value as a oop directly 

Be sure not to unbox the handle until after you've checked for a pending
safepoint or completed any other entry to the vm or you'll be chasing an
intermittent gc failure. Not that I'm speaking from experience or
anything. :-)

-- 
Steve



More information about the hotspot-dev mailing list