Bug#696041: ia64 (Itanium) Mozilla JS engine needs pointers have their high 17 bits cleared

Stephan Schreiber info at fs-driver.org
Sun Dec 16 08:08:44 UTC 2012


Package: iceweasel
Version: 10.0.11esr-1
Severity: serious
Tags: patch


Machine: Dell PowerEdge 3250
Processor: 2x Itanium Madison 1.5GHz 6M
Memory: 16G



The Mozilla JS engine needs pointers have their high 17 bits cleared  
because it would break a variant data type which the engine uses.
This bug is actually the same as we had for the Mozilla Spider Mokey  
JS engine library - libmozsjs185-1.0, bug#659186.
Mapping of pages should be patched. Furthermore, the memory for  
'static strings' must not be global static variables (text segment).

The code of Iceweasel is somewhat newer than the one of libmozjs185.  
It has slightly changed.

At first I had a patch which was very similar to the one of  
bug#659186. But disabling the static strings optimization of the js  
engine was a serious performance penalty that a lot of tests of the  
test suite timed out and failed. (Bug#692053 wasn't the reason for  
that.)

So I decided to keep the static strings optimization; the patch  
allocates mapped memory and puts the static strings into it upon  
startup on ia64. So any address of an item in the static strings array  
always have their high 17 bits cleared.

The patches don't change anything on archs other than ia64.

- Please apply 01-fix-map-pages-on-ia64.patch first.
- At next 02-static-str-in-mmem-on-ia64.patch.

You also need the patch of bug#692053.

Stephan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01-fix-map-pages-on-ia64.patch
Type: application/octet-stream
Size: 2433 bytes
Desc: 01-fix-map-pages-on-ia64.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozilla-maintainers/attachments/20121216/7b87f665/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-static-str-in-mmem-on-ia64.patch
Type: application/octet-stream
Size: 13455 bytes
Desc: 02-static-str-in-mmem-on-ia64.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozilla-maintainers/attachments/20121216/7b87f665/attachment-0001.obj>


More information about the pkg-mozilla-maintainers mailing list