All users were logged out of Bugzilla on October 13th, 2018

JSJ_InitJSContext got called multiple times during start up

RESOLVED INCOMPLETE

Status

--
critical
RESOLVED INCOMPLETE
16 years ago
6 years ago

People

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

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
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.

Comment 1

15 years ago
->me
Assignee: joe.chou → kyle.yuan
Status: UNCONFIRMED → NEW
Ever confirmed: true

Updated

13 years ago
Assignee: yuanyi21 → pete.zha

Comment 2

13 years ago
mass reassign to Alfred
Assignee: zhayupeng → alfred.peng

Updated

8 years ago
Component: Java: OJI → Java: OJI
Product: Core → Core Graveyard

Comment 3

6 years ago
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
Last Resolved: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.