Closed Bug 462873 Opened 16 years ago Closed 16 years ago

WinCE Shunt Library Needs To Save Env to Registry

Categories

(Firefox Build System :: General, defect)

ARM
Windows Mobile 6 Professional
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 465874

People

(Reporter: wolfe, Unassigned)

Details

(Keywords: mobile)

Attachments

(1 file, 3 obsolete files)

In WinCE Shunt Library, environment variables need to be saved out to Registry.

Environment variables are not properly handed off to a second execution of the xulrunner EXE.  By saving those environment variables to the Registry, all environment variables can be modified, including those specified as "initial value" within the WinCE Shunt Library.

Prior to this patch, those initial value environment variables were not easily modified.

This patch is set up so that the initial values will be used ONLY if the WinCE Shunt Library Registry Key (HKEY_LOCAL_USER/Software/Mozilla/Environment) does not exist.  

Also, I have added a function to purge any cached environment variables, as a way of helping to defragment memory in low memory situations.
Attachment #346059 - Flags: review?(doug.turner)
Attachment #346059 - Attachment is patch: true
Attachment #346059 - Attachment mime type: application/octet-stream → text/plain
Attached file v2.0 patch (obsolete) —
Remove function header for purgeMappings() function in WinCE Shunt Library.

purgeMappings() function will de-allocate all the cached environment variables, potentially allowing less memory fragmentation in low memory situations.

Removed the __try / except constructs, removed extra indentation on getMapping() function.

Removed TABs accidentally inserted by Visual Studio 2008 (thanks MS!).
Attachment #346059 - Attachment is obsolete: true
Attachment #346071 - Flags: review?(doug.turner)
Attachment #346059 - Flags: review?(doug.turner)
Attached patch v3.0 patch (obsolete) — Splinter Review
Made all non-exported functions static, to ensure no use outside of the WinCE Shunt Library.

Added safety checks for allocations, to make sure failed allocs are not attempted to be dereferenced.

Used strdup() instead of malloc()/strcpy() in several places.
Attachment #346071 - Attachment is obsolete: true
Attachment #346075 - Flags: review?(doug.turner)
Attachment #346071 - Flags: review?(doug.turner)
Attached patch v4.0 patchSplinter Review
Removed "convert to registry soon" comment.  Lined up a few equal signs.
Attachment #346075 - Attachment is obsolete: true
Attachment #346077 - Flags: review?(doug.turner)
Attachment #346075 - Flags: review?(doug.turner)
Comment on attachment 346077 [details] [diff] [review]
v4.0 patch

Changing from using Registry to actually using command line to pass environment in WinCE, as per blassey previous patch.
Attachment #346077 - Flags: review?(doug.turner)
Resolved in favor of passing whole environment variables to new invocation via command line arguments.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: