1Test stopped using breakpoint 2NORMAL RUN: Single call with no interference on (ID: 0) StandardTestObject { cnt: 0 } 3NORMAL RUN: result for (ID: 0) StandardTestObject { cnt: 2 } is 1 4Single call with force-early-return on (ID: 1) StandardTestObject { cnt: 0 } 5Will force return of 987000 6result for (ID: 1) StandardTestObject { cnt: 1 } is 987000 7Test stopped using breakpoint with declared synchronized function 8NORMAL RUN: Single call with no interference on (ID: 2) SynchronizedFunctionTestObject { cnt: 0 } 9NORMAL RUN: result for (ID: 2) SynchronizedFunctionTestObject { cnt: 2 } is 1 10Single call with force-early-return on (ID: 3) SynchronizedFunctionTestObject { cnt: 0 } 11Will force return of 987001 12result for (ID: 3) SynchronizedFunctionTestObject { cnt: 1 } is 987001 13Test stopped using breakpoint with synchronized block 14NORMAL RUN: Single call with no interference on (ID: 4) SynchronizedTestObject { cnt: 0 } 15NORMAL RUN: result for (ID: 4) SynchronizedTestObject { cnt: 2 } is 1 16Single call with force-early-return on (ID: 5) SynchronizedTestObject { cnt: 0 } 17Will force return of 987002 18result for (ID: 5) SynchronizedTestObject { cnt: 1 } is 987002 19Test stopped on single step 20NORMAL RUN: Single call with no interference on (ID: 6) StandardTestObject { cnt: 0 } 21NORMAL RUN: result for (ID: 6) StandardTestObject { cnt: 2 } is 1 22Single call with force-early-return on (ID: 7) StandardTestObject { cnt: 0 } 23Will force return of 987003 24result for (ID: 7) StandardTestObject { cnt: 1 } is 987003 25Test stopped on field access 26NORMAL RUN: Single call with no interference on (ID: 8) FieldBasedTestObject { TARGET_FIELD: 0 } 27NORMAL RUN: result for (ID: 8) FieldBasedTestObject { TARGET_FIELD: 10 } is 10 28Single call with force-early-return on (ID: 9) FieldBasedTestObject { TARGET_FIELD: 0 } 29Will force return of 987004 30result for (ID: 9) FieldBasedTestObject { TARGET_FIELD: 0 } is 987004 31Test stopped on field modification 32NORMAL RUN: Single call with no interference on (ID: 10) FieldBasedTestObject { TARGET_FIELD: 0 } 33NORMAL RUN: result for (ID: 10) FieldBasedTestObject { TARGET_FIELD: 10 } is 10 34Single call with force-early-return on (ID: 11) FieldBasedTestObject { TARGET_FIELD: 0 } 35Will force return of 987005 36result for (ID: 11) FieldBasedTestObject { TARGET_FIELD: 0 } is 987005 37Test stopped during Method Exit of calledFunction 38NORMAL RUN: Single call with no interference on (ID: 12) StandardTestObject { cnt: 0 } 39NORMAL RUN: result for (ID: 12) StandardTestObject { cnt: 2 } is 1 40Single call with force-early-return on (ID: 13) StandardTestObject { cnt: 0 } 41Will force return of 987006 42result for (ID: 13) StandardTestObject { cnt: 2 } is 987006 43Test stopped during Method Enter of calledFunction 44NORMAL RUN: Single call with no interference on (ID: 14) StandardTestObject { cnt: 0 } 45NORMAL RUN: result for (ID: 14) StandardTestObject { cnt: 2 } is 1 46Single call with force-early-return on (ID: 15) StandardTestObject { cnt: 0 } 47Will force return of 987007 48result for (ID: 15) StandardTestObject { cnt: 0 } is 987007 49Test stopped during Method Exit due to exception thrown in same function 50NORMAL RUN: Single call with no interference on (ID: 16) ExceptionOnceObject { cnt: 0, throwInSub: false } 51Uncaught exception in thread Thread[Test1970 target thread - 16,5,main] - art.Test1970$ExceptionOnceObject$TestError: null 52 art.Test1970$ExceptionOnceObject.calledFunction(Test1970.java) 53 art.Test1970$AbstractTestObject.run(Test1970.java) 54 art.Test1970$2.run(Test1970.java) 55 java.lang.Thread.run(Thread.java) 56 57NORMAL RUN: result for (ID: 16) ExceptionOnceObject { cnt: 1, throwInSub: false } is 0 58Single call with force-early-return on (ID: 17) ExceptionOnceObject { cnt: 0, throwInSub: false } 59Will force return of 987008 60result for (ID: 17) ExceptionOnceObject { cnt: 1, throwInSub: false } is 987008 61Test stopped during Method Exit due to exception thrown in subroutine 62NORMAL RUN: Single call with no interference on (ID: 18) ExceptionOnceObject { cnt: 0, throwInSub: true } 63Uncaught exception in thread Thread[Test1970 target thread - 18,5,main] - art.Test1970$ExceptionOnceObject$TestError: null 64 art.Test1970$ExceptionOnceObject.doThrow(Test1970.java) 65 art.Test1970$ExceptionOnceObject.calledFunction(Test1970.java) 66 art.Test1970$AbstractTestObject.run(Test1970.java) 67 art.Test1970$2.run(Test1970.java) 68 java.lang.Thread.run(Thread.java) 69 70NORMAL RUN: result for (ID: 18) ExceptionOnceObject { cnt: 1, throwInSub: true } is 0 71Single call with force-early-return on (ID: 19) ExceptionOnceObject { cnt: 0, throwInSub: true } 72Will force return of 987009 73result for (ID: 19) ExceptionOnceObject { cnt: 1, throwInSub: true } is 987009 74Test stopped during notifyFramePop with exception on pop of calledFunction 75NORMAL RUN: Single call with no interference on (ID: 20) ExceptionThrowTestObject { cnt: 0, baseCnt: 0 } 76art.Test1970$ExceptionThrowTestObject$TestError thrown and caught! 77NORMAL RUN: result for (ID: 20) ExceptionThrowTestObject { cnt: 2, baseCnt: 2 } is 0 78Single call with force-early-return on (ID: 21) ExceptionThrowTestObject { cnt: 0, baseCnt: 0 } 79Will force return of 987010 80result for (ID: 21) ExceptionThrowTestObject { cnt: 2, baseCnt: 2 } is 987010 81Test stopped during notifyFramePop with exception on pop of doThrow 82NORMAL RUN: Single call with no interference on (ID: 22) ExceptionCatchTestObject { cnt: 0 } 83art.Test1970$ExceptionCatchTestObject$TestError caught in called function. 84NORMAL RUN: result for (ID: 22) ExceptionCatchTestObject { cnt: 2 } is 1 85Single call with force-early-return on (ID: 23) ExceptionCatchTestObject { cnt: 0 } 86Will force return of 987011 87Failed to force-return due to java.lang.RuntimeException: JVMTI_ERROR_TYPE_MISMATCH 88 art.NonStandardExit.forceEarlyReturnLong(Native Method) 89 art.NonStandardExit.forceEarlyReturn(NonStandardExit.java) 90 art.Test1970$TestSuspender.performForceReturn(Test1970.java) 91 art.Test1970.runTestOn(Test1970.java) 92 art.Test1970.runTestOn(Test1970.java) 93 art.Test1970.runTestOn(Test1970.java) 94 art.Test1970.runTests(Test1970.java) 95 <Additional frames hidden> 96 97art.Test1970$ExceptionCatchTestObject$TestError caught in called function. 98result for (ID: 23) ExceptionCatchTestObject { cnt: 2 } is 1 99Test stopped during ExceptionCatch event of calledFunction (catch in called function, throw in called function) 100NORMAL RUN: Single call with no interference on (ID: 24) ExceptionThrowTestObject { cnt: 0, baseCnt: 0 } 101art.Test1970$ExceptionThrowTestObject$TestError caught in same function. 102NORMAL RUN: result for (ID: 24) ExceptionThrowTestObject { cnt: 111, baseCnt: 2 } is 11 103Single call with force-early-return on (ID: 25) ExceptionThrowTestObject { cnt: 0, baseCnt: 0 } 104Will force return of 987012 105result for (ID: 25) ExceptionThrowTestObject { cnt: 11, baseCnt: 2 } is 987012 106Test stopped during ExceptionCatch event of calledFunction (catch in called function, throw in subroutine) 107NORMAL RUN: Single call with no interference on (ID: 26) ExceptionCatchTestObject { cnt: 0 } 108art.Test1970$ExceptionCatchTestObject$TestError caught in called function. 109NORMAL RUN: result for (ID: 26) ExceptionCatchTestObject { cnt: 2 } is 1 110Single call with force-early-return on (ID: 27) ExceptionCatchTestObject { cnt: 0 } 111Will force return of 987013 112result for (ID: 27) ExceptionCatchTestObject { cnt: 1 } is 987013 113Test stopped during Exception event of calledFunction (catch in calling function) 114NORMAL RUN: Single call with no interference on (ID: 28) ExceptionThrowTestObject { cnt: 0, baseCnt: 0 } 115art.Test1970$ExceptionThrowTestObject$TestError thrown and caught! 116NORMAL RUN: result for (ID: 28) ExceptionThrowTestObject { cnt: 2, baseCnt: 2 } is 0 117Single call with force-early-return on (ID: 29) ExceptionThrowTestObject { cnt: 0, baseCnt: 0 } 118Will force return of 987014 119result for (ID: 29) ExceptionThrowTestObject { cnt: 2, baseCnt: 2 } is 987014 120Test stopped during Exception event of calledFunction (catch in called function) 121NORMAL RUN: Single call with no interference on (ID: 30) ExceptionThrowTestObject { cnt: 0, baseCnt: 0 } 122art.Test1970$ExceptionThrowTestObject$TestError caught in same function. 123NORMAL RUN: result for (ID: 30) ExceptionThrowTestObject { cnt: 111, baseCnt: 2 } is 11 124Single call with force-early-return on (ID: 31) ExceptionThrowTestObject { cnt: 0, baseCnt: 0 } 125Will force return of 987015 126result for (ID: 31) ExceptionThrowTestObject { cnt: 11, baseCnt: 2 } is 987015 127Test stopped during Exception event of calledFunction (catch in parent of calling function) 128NORMAL RUN: Single call with no interference on (ID: 32) ExceptionThrowFarTestObject { cnt: 0, baseCnt: 0 } 129art.Test1970$ExceptionThrowFarTestObject$TestError thrown and caught! 130NORMAL RUN: result for (ID: 32) ExceptionThrowFarTestObject { cnt: 2, baseCnt: 2 } is 0 131Single call with force-early-return on (ID: 33) ExceptionThrowFarTestObject { cnt: 0, baseCnt: 0 } 132Will force return of 987016 133result for (ID: 33) ExceptionThrowFarTestObject { cnt: 2, baseCnt: 2 } is 987016 134Test stopped during Exception event of calledFunction (catch in called function) 135NORMAL RUN: Single call with no interference on (ID: 34) ExceptionThrowFarTestObject { cnt: 0, baseCnt: 0 } 136art.Test1970$ExceptionThrowFarTestObject$TestError caught in same function. 137NORMAL RUN: result for (ID: 34) ExceptionThrowFarTestObject { cnt: 111, baseCnt: 2 } is 101 138Single call with force-early-return on (ID: 35) ExceptionThrowFarTestObject { cnt: 0, baseCnt: 0 } 139Will force return of 987017 140result for (ID: 35) ExceptionThrowFarTestObject { cnt: 101, baseCnt: 2 } is 987017 141Test stopped during random Suspend. 142NORMAL RUN: Single call with no interference on (ID: 36) SuspendSuddenlyObject { cnt: 0, spun: false } 143NORMAL RUN: result for (ID: 36) SuspendSuddenlyObject { cnt: 2, spun: true } is 1 144Single call with force-early-return on (ID: 37) SuspendSuddenlyObject { cnt: 0, spun: false } 145Will force return of 987018 146result for (ID: 37) SuspendSuddenlyObject { cnt: 1, spun: true } is 987018 147Test stopped during a native method fails 148NORMAL RUN: Single call with no interference on (ID: 38) NativeCalledObject { cnt: 0 } 149NORMAL RUN: result for (ID: 38) NativeCalledObject { cnt: 2 } is 1 150Single call with force-early-return on (ID: 39) NativeCalledObject { cnt: 0 } 151Will force return of 987019 152Failed to force-return due to java.lang.RuntimeException: JVMTI_ERROR_OPAQUE_FRAME 153 art.NonStandardExit.forceEarlyReturnLong(Native Method) 154 art.NonStandardExit.forceEarlyReturn(NonStandardExit.java) 155 art.Test1970$TestSuspender.performForceReturn(Test1970.java) 156 art.Test1970.runTestOn(Test1970.java) 157 art.Test1970.runTestOn(Test1970.java) 158 art.Test1970.runTestOn(Test1970.java) 159 art.Test1970.runTests(Test1970.java) 160 <Additional frames hidden> 161 162result for (ID: 39) NativeCalledObject { cnt: 2 } is 1 163Test stopped in a method called by native succeeds 164NORMAL RUN: Single call with no interference on (ID: 40) NativeCallerObject { cnt: 0 } 165NORMAL RUN: result for (ID: 40) NativeCallerObject { cnt: 2 } is 1 166Single call with force-early-return on (ID: 41) NativeCallerObject { cnt: 0 } 167Will force return of 987020 168result for (ID: 41) NativeCallerObject { cnt: 2 } is 987020 169Test stopped in a static method 170NORMAL RUN: Single call with no interference on (ID: 42) StaticMethodObject { cnt: 0 } 171NORMAL RUN: result for (ID: 42) StaticMethodObject { cnt: 2 } is 1 172Single call with force-early-return on (ID: 43) StaticMethodObject { cnt: 0 } 173Will force return of 987021 174result for (ID: 43) StaticMethodObject { cnt: 1 } is 987021 175Test force-return of void function fails! 176NORMAL RUN: Single call with no interference on (ID: 44) BadForceVoidObject { cnt: 0 } 177NORMAL RUN: result for (ID: 44) BadForceVoidObject { cnt: 2 } is -1 178Single call with force-early-return on (ID: 45) BadForceVoidObject { cnt: 0 } 179Will force return of 987022 180Failed to force-return due to java.lang.RuntimeException: JVMTI_ERROR_TYPE_MISMATCH 181 art.NonStandardExit.forceEarlyReturnLong(Native Method) 182 art.NonStandardExit.forceEarlyReturn(NonStandardExit.java) 183 art.Test1970$TestSuspender.performForceReturn(Test1970.java) 184 art.Test1970.runTestOn(Test1970.java) 185 art.Test1970.runTestOn(Test1970.java) 186 art.Test1970.runTestOn(Test1970.java) 187 art.Test1970.runTests(Test1970.java) 188 <Additional frames hidden> 189 190result for (ID: 45) BadForceVoidObject { cnt: 2 } is -1 191Test force-return of int function fails! 192NORMAL RUN: Single call with no interference on (ID: 46) BadForceIntObject { cnt: 0 } 193NORMAL RUN: result for (ID: 46) BadForceIntObject { cnt: 2 } is 1 194Single call with force-early-return on (ID: 47) BadForceIntObject { cnt: 0 } 195Will force return of 987023 196Failed to force-return due to java.lang.RuntimeException: JVMTI_ERROR_TYPE_MISMATCH 197 art.NonStandardExit.forceEarlyReturnLong(Native Method) 198 art.NonStandardExit.forceEarlyReturn(NonStandardExit.java) 199 art.Test1970$TestSuspender.performForceReturn(Test1970.java) 200 art.Test1970.runTestOn(Test1970.java) 201 art.Test1970.runTestOn(Test1970.java) 202 art.Test1970.runTestOn(Test1970.java) 203 art.Test1970.runTests(Test1970.java) 204 <Additional frames hidden> 205 206result for (ID: 47) BadForceIntObject { cnt: 2 } is 1 207Test force-return of Object function fails! 208NORMAL RUN: Single call with no interference on (ID: 48) BadForceIntObject { cnt: 0 } 209NORMAL RUN: result for (ID: 48) BadForceIntObject { cnt: 2 } is 1 210Single call with force-early-return on (ID: 49) BadForceIntObject { cnt: 0 } 211Will force return of 987024 212Failed to force-return due to java.lang.RuntimeException: JVMTI_ERROR_TYPE_MISMATCH 213 art.NonStandardExit.forceEarlyReturnLong(Native Method) 214 art.NonStandardExit.forceEarlyReturn(NonStandardExit.java) 215 art.Test1970$TestSuspender.performForceReturn(Test1970.java) 216 art.Test1970.runTestOn(Test1970.java) 217 art.Test1970.runTestOn(Test1970.java) 218 art.Test1970.runTestOn(Test1970.java) 219 art.Test1970.runTests(Test1970.java) 220 <Additional frames hidden> 221 222result for (ID: 49) BadForceIntObject { cnt: 2 } is 1 223