Closed
Bug 542382
Opened 15 years ago
Closed 15 years ago
jit doesn't appear to be calling class initializer code unless debugger is enabled
Categories
(Tamarin Graveyard :: Baseline JIT (CodegenLIR), defect)
Tracking
(Not tracked)
VERIFIED
WORKSFORME
People
(Reporter: jasowill, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
203 bytes,
text/plain
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Build Identifier: latest
the following code will not get executed unless the core->debugger() != NULL. (However in interp_all mode it works)
public class MyClass {
registerClassAlias(...);
}
Reproducible: Always
Steps to Reproduce:
1. Create a class with static initialization code in a class
2. Compile and run it without debugger turned on
Actual Results:
The code in the static init section is never called
Expected Results:
Code should be called.
Comment 1•15 years ago
|
||
Unable to reproduce. Used the attached test file, tested with avmshell debug-debugger and release-debugger using the -Dnodebugger switch with -Ojit and -Djitordie
compiled using:
java -jar $ASC -import $BUILTINABC -AS3 -d test.as
output from testcase:
$ $AVM -Dnodebugger -Djitordie test.abc
---> in static block
call test.staticFunction
---> in staticFunction()
call test()
---> in staticFunction()
Comment 2•15 years ago
|
||
updated simple testcase with a static function call in a class.
Unable to reproduce the problem in the shell using -Djitordie
$AVM -Djitordie test.abc
output:
---> in staticFunction()
Updated•15 years ago
|
Attachment #423796 -
Attachment is obsolete: true
Comment 3•15 years ago
|
||
(In reply to comment #2)
>
> Unable to reproduce the problem in the shell using -Djitordie
>
> $AVM -Djitordie test.abc
> output:
> ---> in staticFunction()
Also unable to reproduce using a release-debugger shell and then turning off the debugger with -Dnodebugger
$AVM -Djitordie -Dnodebugger test.abc
output:
---> in staticFunction()
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Updated•15 years ago
|
Flags: flashplayer-triage+
You need to log in
before you can comment on or make changes to this bug.
Description
•