RFR (M) #5 CR 8003985: Support @Contended annotation
Staffan Larsen
staffan.larsen at oracle.com
Wed Jan 16 01:07:18 PST 2013
On 16 jan 2013, at 09:52, Aleksey Shipilev <aleksey.shipilev at oracle.com> wrote:
> On 01/16/2013 12:47 AM, Staffan Larsen wrote:
>> The the specific launcher is only available if you build just hotspot
>> (which I think most hotspot developers still do).
>
> And which is unfortunate since there is no lingua franca in builds.
Things suck until they become better. ;)
> Also, I wandered around openjdk.java.net looking for instructions to
> build HotSpot separately, but found none. Any hints?
Here is how I build:
> cd make
> make ALT_BOOTDIR=<path to jdk8 installation> ARCH_DATA_MODEL=64 [jvmg | product | fastdebug]
>
>> If you run the jstack launcher from the jdk bin directory you have to
>> run with the -F flag to use the SA version of jstack. Normally it
>> uses code in Hotspot to do deadlock detection and print
>> stacktraces.
>
> Ok, I see, thanks. "jstack -F" fails on all combinations, including
> jdk7u12-ea vs. jdk7u12-ea with:
>
> Attaching to process ID 20721, please wait...
> Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException:
> Can't attach to the process
>
> I will be glad to follow up on this, if only I could reproduce this
> locally. Is there something else should be enabled to reproduce this?
It needs to be run as root to be able to attach to the process as a debugger.
/Staffan
>
> -Aleksey.
More information about the hotspot-dev
mailing list