Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2027655 | 1.3.0 | Peter Kessler | P3 | Resolved | Fixed | beta |
Name: ssC76496 Date: 06/22/99
This happens when JPDA run in Hotspot Performance Engine.
When the VM is started and resumed,
the program gets over and VMDeathEvent occurs and then VMDisconnectEvent
occurs in Classic VM.
But VMDisconnected Event occurs in Hotspot VM as soon as the program is over.
This can be reporduced using the example given along with JPDA Rc1 build.
Steps to reproduce
------------------
1. Set path to the bin directory in JPDA rc1 build.
2. Compile the attached Test.java
3. Start jdb - (jdb bug.test.Test)
4. Give 'run' in the jdb prompt
When this is done in Classic VM, we get "The application exited"
which is printed via VMDeathEvent.
When this is done in Hotspot VM, we get "The application has been disconnected"
which is printed via VMDisconnectEvent.
Hotspot VM
-----------
C:\bugjbug\classes>jdb bug.test.Test
Initializing jdb...
> run
run bug.test.Test
HotSpot VM warning: Setting of property "java.compiler" is ignored
>
VM Started: Hi there
Hi there
Hi there
Bye!
The application has been disconnected
Classic VM
----------
C:\bugjbug\classes>jdb bug.test.Test
Initializing jdb...
> run
run bug.test.Test
>
VM Started: Hi there
Hi there
Hi there
Bye!
The application exited
Test.java
---------
package bug.test;
public class Test
{
public static void main(String args[])
{
int l_counter;
for(l_counter = 0; l_counter < 3; l_counter ++)
{
System.out.println("Hi there");
}
entryMethod();
System.out.println("Bye!");
}
public static void entryMethod()
{ }
}
======================================================================
- backported by
-
JDK-2027655 Regression: VMDeathEvent doesnt occur in Hotspot 1.0
-
- Resolved
-
- duplicates
-
JDK-4270122 JVMDI_EVENT_VM_DEATH doesn't occur in HotSpot Client VM
-
- Closed
-