Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4248434

Regression: VMDeathEvent doesnt occur in Hotspot 1.0

XMLWordPrintable

    • fcs
    • 1.0
    • 1.0.1
    • generic, sparc
    • generic, solaris_7
    • Not verified



        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()
            { }
        }


        ======================================================================

              pbk Peter Kessler
              sshakilasunw Shahulhameedmohaideenhaleema Shakila (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: