Closed Bug 175348 Opened 23 years ago Closed 12 years ago

JSJ_InitJSContext got called multiple times during start up

Categories

(Core Graveyard :: Java: OJI, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: xiaobin.lu, Assigned: alfred.peng)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0) Build Identifier: 20021018 JS_InitJSContext function gets called multiple time during browser start up. This is a very expensive operation and we should call it only once. So to make this possible, we should add some static variables to nsJVMManager object to mark the function already gets called Reproducible: Always Steps to Reproduce: 1. Using MSDEV to set up your debugging enviroment 2. Set breakpoints in JSJ_InitJSContext (js/src/liveconnect/jsj.c), you may ned to add jsj3250.dll to the debug dll 3. Start debugging, you will see that the function gets called multiple times Actual Results: Function gets called multiple times Expected Results: JSJ_InitJSContext should be called only once I mark this as critical since it really impacts the performance.
->me
Assignee: joe.chou → kyle.yuan
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: yuanyi21 → pete.zha
mass reassign to Alfred
Assignee: zhayupeng → alfred.peng
Product: Core → Core Graveyard
Mass-closing bugs in the "OJI" component: OJI plugin integration was replaced with npruntime long ago, and these bugs appear to be irrelevant now. If there is in fact a real bug that remains, please file it new in the "Core" product, component "Plug-ins".
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.