commit mozjs17 for openSUSE:Factory

2017-05-27 Thread root
Hello community,

here is the log from the commit of package mozjs17 for openSUSE:Factory checked 
in at 2017-05-27 13:05:37

Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old)
 and  /work/SRC/openSUSE:Factory/.mozjs17.new (New)


Package is "mozjs17"

Sat May 27 13:05:37 2017 rev:11 rq:491247 version:17.0

Changes:

--- /work/SRC/openSUSE:Factory/mozjs17/mozjs17.changes  2016-07-01 
09:51:22.0 +0200
+++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2017-05-27 
13:05:40.235190677 +0200
@@ -1,0 +2,5 @@
+Tue Apr 25 09:53:45 UTC 2017 - mli...@suse.cz
+
+- Add gcc7-fix-warning.patch: fix warning, adopted from trunk.
+
+---

New:

  gcc7-fix-warning.patch



Other differences:
--
++ mozjs17.spec ++
--- /var/tmp/diff_new_pack.d1w9LN/_old  2017-05-27 13:05:41.091069664 +0200
+++ /var/tmp/diff_new_pack.d1w9LN/_new  2017-05-27 13:05:41.091069664 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mozjs17
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #   2013 Wolfgang Rosenauer
 #
 # All modifications and additions to the file contributed by third parties
@@ -35,6 +35,7 @@
 Patch4: no_defined_array.patch
 Patch5: aarch64-64k-page.patch
 Patch6: mozjs-support-48bit-va.patch
+Patch7: gcc7-fix-warning.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf213
 BuildRequires:  gcc-c++
@@ -81,6 +82,7 @@
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 # no need to add build time to binaries

++ gcc7-fix-warning.patch ++
diff --git a/js/src/shell/jsoptparse.cpp b/js/src/shell/jsoptparse.cpp
index b49d0a5..1c72fac 100644
--- a/js/src/shell/jsoptparse.cpp
+++ b/js/src/shell/jsoptparse.cpp
@@ -243,7 +243,7 @@ OptionParser::extractValue(size_t argc, char **argv, size_t 
*i, char **value)
 char *eq = strchr(argv[*i], '=');
 if (eq) {
 *value = eq + 1;
-if (value[0] == '\0')
+if (*value[0] == '\0')
 return error("A value is required for option %.*s", eq - argv[*i], 
argv[*i]);
 return Okay;
 }



commit mozjs17 for openSUSE:Factory

2016-07-01 Thread h_root
Hello community,

here is the log from the commit of package mozjs17 for openSUSE:Factory checked 
in at 2016-07-01 09:51:21

Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old)
 and  /work/SRC/openSUSE:Factory/.mozjs17.new (New)


Package is "mozjs17"

Changes:

--- /work/SRC/openSUSE:Factory/mozjs17/mozjs17.changes  2015-12-03 
13:26:28.0 +0100
+++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2016-07-01 
09:51:22.0 +0200
@@ -1,0 +2,12 @@
+Mon Jun 13 15:38:33 UTC 2016 - ag...@suse.com
+
+- Use upstream version to fix the 48 bit address space
+  problem (bsc#984126)
+
+---
+Fri Jun 10 13:28:12 UTC 2016 - ag...@suse.com
+
+- Fix 48 virtual address space systems (bsc#984126)
+  (mozjs-support-48bit-va.patch)
+
+---

New:

  mozjs-support-48bit-va.patch



Other differences:
--
++ mozjs17.spec ++
--- /var/tmp/diff_new_pack.pquCrL/_old  2016-07-01 09:51:23.0 +0200
+++ /var/tmp/diff_new_pack.pquCrL/_new  2016-07-01 09:51:23.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mozjs17
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #   2013 Wolfgang Rosenauer
 #
 # All modifications and additions to the file contributed by third parties
@@ -34,6 +34,7 @@
 Patch3: mozbug746112-no-decommit-on-large-pages.patch
 Patch4: no_defined_array.patch
 Patch5: aarch64-64k-page.patch
+Patch6: mozjs-support-48bit-va.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf213
 BuildRequires:  gcc-c++
@@ -79,6 +80,7 @@
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 # no need to add build time to binaries

++ mozjs-support-48bit-va.patch ++

# HG changeset patch
# User Zheng Xu 
# Date 1464657720 -7200
# Node ID dfaafbaaa2919a033c4c0abdd5830f4ea413bed6
# Parent  499f16ca85ec48d1896a1633730715f32bd62140
Bug 1143022 - Manually mmap on arm64 to ensure high 17 bits are clear. 
r=ehoogeveen

There might be 48-bit VA on arm64 depending on kernel configuration.
Manually mmap heap memory to align with the assumption made by JS engine.

Index: mozjs17.0.0/js/src/gc/Memory.cpp
===
--- mozjs17.0.0.orig/js/src/gc/Memory.cpp
+++ mozjs17.0.0/js/src/gc/Memory.cpp
@@ -309,6 +309,53 @@ InitMemorySubsystem()
 #endif
 }
 
+
+#if defined(__aarch64__)
+#define USE_SAFE_MMAP
+#endif
+
+#ifdef USE_SAFE_MMAP
+static void *safe_mmap(size_t length, int prot, int flags, int fd, off_t 
offset)
+{
+   /*
+* There might be similar virtual address issue on arm64 which depends on
+* hardware and kernel configurations. But the work around is slightly
+* different due to the different mmap behavior.
+*/
+const uintptr_t start = UINT64_C(0x0700);
+const uintptr_t end   = UINT64_C(0x8000);
+const uintptr_t step  = ChunkSize;
+   /*
+* Optimization options if there are too many retries in practice:
+* 1. Examine /proc/self/maps to find an available address. This file is
+*not always available, however. In addition, even if we examine
+*/proc/self/maps, we may still need to retry several times due to
+*racing with other threads.
+* 2. Use a global/static variable with lock to track the addresses we have
+*allocated or tried.
+*/
+uintptr_t hint;
+void* region = MAP_FAILED;
+for (hint = start; region == MAP_FAILED && hint + length <= end; hint += 
step) {
+region = mmap((void*)hint, length, prot, flags, fd, offset);
+if (region != MAP_FAILED) {
+if ((uintptr_t(region) + (length - 1)) & 0x8000) {
+if (munmap(region, length)) {
+MOZ_ASSERT(errno == ENOMEM);
+}
+region = MAP_FAILED;
+}
+}
+}
+return region == MAP_FAILED ? NULL : region;
+}
+#else
+static void *safe_mmap(size_t length, int prot, int flags, int fd, off_t 
offset)
+{
+return mmap(NULL, length, prot, flags, fd, offset);
+}
+#endif
+
 void *
 MapAlignedPages(size_t size, size_t alignment)
 {
@@ -322,12 +369,12 @@ MapAlignedPages(size_t size, size_t alig
 
 /* Special case: If we want page alignment, no further work is needed. */
 if (alignment == PageSize) {
-return mmap(NULL, size, prot, flags, -1, 0);
+return safe_mmap(size, prot, flags, -1, 0);
 }
 
 /* Overallocate and unmap the region's edges. */
 size_t reqSize = Min(size + 2 * alignment, 2 * 

commit mozjs17 for openSUSE:Factory

2015-12-03 Thread h_root
Hello community,

here is the log from the commit of package mozjs17 for openSUSE:Factory checked 
in at 2015-12-03 13:26:27

Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old)
 and  /work/SRC/openSUSE:Factory/.mozjs17.new (New)


Package is "mozjs17"

Changes:

--- /work/SRC/openSUSE:Factory/mozjs17/mozjs17.changes  2015-07-21 
13:24:51.0 +0200
+++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2015-12-03 
13:26:28.0 +0100
@@ -1,0 +2,5 @@
+Sat Nov 21 09:43:09 UTC 2015 - o...@aepfle.de
+
+- Disable pagesize check unconditionally to cover also ppc64
+
+---



Other differences:
--
++ aarch64-64k-page.patch ++
--- /var/tmp/diff_new_pack.bjozYB/_old  2015-12-03 13:26:29.0 +0100
+++ /var/tmp/diff_new_pack.bjozYB/_new  2015-12-03 13:26:29.0 +0100
@@ -38,8 +38,8 @@
  void
  InitMemorySubsystem()
  {
-+/* aarch64 may have 64KB or 4KB pages */
-+#ifndef __aarch64__
++/* Everyone may have 64KB or 4KB pages */
++#if 0
  if (size_t(sysconf(_SC_PAGESIZE)) != PageSize)
  MOZ_CRASH();
 +#endif




commit mozjs17 for openSUSE:Factory

2015-07-21 Thread h_root
Hello community,

here is the log from the commit of package mozjs17 for openSUSE:Factory checked 
in at 2015-07-21 13:24:50

Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old)
 and  /work/SRC/openSUSE:Factory/.mozjs17.new (New)


Package is mozjs17

Changes:

--- /work/SRC/openSUSE:Factory/mozjs17/mozjs17.changes  2014-08-03 
07:50:40.0 +0200
+++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2015-07-21 
13:24:51.0 +0200
@@ -1,0 +2,11 @@
+Fri Jul  3 13:19:29 UTC 2015 - dmuel...@suse.com
+
+- add aarch64-64k-page.patch: Fix crash on 64kb kernels
+- update mozjs-aarch64-support.patch: More fixes for aarch64
+
+---
+Wed Jul  1 12:34:41 UTC 2015 - h...@imb-jena.de
+
+- no_defined_array.patch: fix milestone.pl to work with perl-5.22
+
+---

New:

  aarch64-64k-page.patch
  no_defined_array.patch



Other differences:
--
++ mozjs17.spec ++
--- /var/tmp/diff_new_pack.KEloHf/_old  2015-07-21 13:24:52.0 +0200
+++ /var/tmp/diff_new_pack.KEloHf/_new  2015-07-21 13:24:52.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mozjs17
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #   2013 Wolfgang Rosenauer
 #
 # All modifications and additions to the file contributed by third parties
@@ -32,6 +32,8 @@
 Patch1: mozjs-aarch64-support.patch
 Patch2: mozjs-ppc64le-support.patch
 Patch3: mozbug746112-no-decommit-on-large-pages.patch
+Patch4: no_defined_array.patch
+Patch5: aarch64-64k-page.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf213
 BuildRequires:  gcc-c++
@@ -75,6 +77,8 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 %build
 # no need to add build time to binaries

++ aarch64-64k-page.patch ++
From f17bc0302100c885c84ebd06cd003aad9774cbb4 Mon Sep 17 00:00:00 2001
From: Mark Salter msal...@redhat.com
Date: Thu, 13 Mar 2014 13:16:27 -0400
Subject: [PATCH] Fix aarch64 support for 64K pagesize

A given AArch64 kernel may be using 4K or 64K pagesizes. When running
on a kernel with 64K pagesize, this check causes an intentionally
generated segfault:

  js/src/gc/Memory.cpp:

  void
  InitMemorySubsystem()
  {
  if (size_t(sysconf(_SC_PAGESIZE)) != PageSize)
 MOZ_CRASH();
  }

This happens because PageSize is fixed to 4K at build time. This mess
has been cleaned up in mozjs-24 by eliminating the build-time PageSize
definition. That is too intrusive for mosjs17, so just set PageSize
to 64K at build time and eliminate the check. This will work with both
4K and 64K aarch64 kernels.

Signed-off-by: Mark Salter msal...@redhat.com
---
 js/src/gc/Heap.h |  2 +-
 js/src/gc/Heap.h.rej | 11 +++
 js/src/gc/Memory.cpp |  3 +++
 3 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 js/src/gc/Heap.h.rej

Index: mozjs17.0.0/js/src/gc/Memory.cpp
===
--- mozjs17.0.0.orig/js/src/gc/Memory.cpp
+++ mozjs17.0.0/js/src/gc/Memory.cpp
@@ -302,8 +302,11 @@ GetPageFaultCount()
 void
 InitMemorySubsystem()
 {
+/* aarch64 may have 64KB or 4KB pages */
+#ifndef __aarch64__
 if (size_t(sysconf(_SC_PAGESIZE)) != PageSize)
 MOZ_CRASH();
+#endif
 }
 
 void *
++ mozjs-aarch64-support.patch ++
--- /var/tmp/diff_new_pack.KEloHf/_old  2015-07-21 13:24:52.0 +0200
+++ /var/tmp/diff_new_pack.KEloHf/_new  2015-07-21 13:24:52.0 +0200
@@ -1,13 +1,59 @@
-Index: mozjs17.0.0/mfbt/double-conversion/utils.h
-===
 mozjs17.0.0.orig/mfbt/double-conversion/utils.h
-+++ mozjs17.0.0/mfbt/double-conversion/utils.h
-@@ -58,7 +58,7 @@
+diff --git a/js/src/assembler/jit/ExecutableAllocator.h 
b/js/src/assembler/jit/ExecutableAllocator.h
+index c071c33..90764c3 100644
+--- a/js/src/assembler/jit/ExecutableAllocator.h
 b/js/src/assembler/jit/ExecutableAllocator.h
+@@ -382,6 +382,12 @@ public:
+ {
+ reprotectRegion(start, size, Executable);
+ }
++#elif WTF_CPU_AARCH64  WTF_PLATFORM_LINUX
++static void cacheFlush(void* code, size_t size)
++{
++intptr_t end = reinterpret_castintptr_t(code) + size;
++__builtin___clear_cache(reinterpret_castchar*(code), 
reinterpret_castchar*(end));
++}
+ #else
+ static void makeWritable(void*, size_t) {}
+ static void makeExecutable(void*, size_t) {}
+diff --git a/js/src/assembler/wtf/Platform.h b/js/src/assembler/wtf/Platform.h
+index 0c84896..e8763a7 100644
+--- 

commit mozjs17 for openSUSE:Factory

2014-08-02 Thread h_root
Hello community,

here is the log from the commit of package mozjs17 for openSUSE:Factory checked 
in at 2014-08-03 07:50:32

Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old)
 and  /work/SRC/openSUSE:Factory/.mozjs17.new (New)


Package is mozjs17

Changes:

--- /work/SRC/openSUSE:Factory/mozjs17/mozjs17.changes  2014-02-26 
23:20:41.0 +0100
+++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2014-08-03 
07:50:40.0 +0200
@@ -1,0 +2,11 @@
+Thu Jul 31 06:29:40 UTC 2014 - w...@rosenauer.org
+
+- add baselibs.conf as source
+
+---
+Wed Jul 30 07:14:54 UTC 2014 - sch...@suse.de
+
+- mozbug746112-no-decommit-on-large-pages.patch: Fix value of PageSize on
+  aarch64
+
+---



Other differences:
--
++ mozjs17.spec ++
--- /var/tmp/diff_new_pack.a2ZcWU/_old  2014-08-03 07:50:41.0 +0200
+++ /var/tmp/diff_new_pack.a2ZcWU/_new  2014-08-03 07:50:41.0 +0200
@@ -25,6 +25,7 @@
 Release:0
 Url:http://www.mozilla.org/js/
 Source0:http://ftp.mozilla.org/pub/mozilla.org/js/mozjs17.0.0.tar.gz
+Source1:baselibs.conf
 #PATCH-FIX-UPSTREAM bmo#618485  64-bit big-endian jsval_layout is not defined, 
compile fails
 Patch0: mozjs-bmo618485-nojsuword.patch
 # PATCH-FIX-UPSTREAM add support for aarch64

++ mozbug746112-no-decommit-on-large-pages.patch ++
--- /var/tmp/diff_new_pack.a2ZcWU/_old  2014-08-03 07:50:41.0 +0200
+++ /var/tmp/diff_new_pack.a2ZcWU/_new  2014-08-03 07:50:41.0 +0200
@@ -10,9 +10,10 @@
 free list.  This patch splits the page size from the arena size and disabled
 decommit logic in that case.
 
-diff -up xulrunner-17.0/mozilla-beta/js/src/gc/Heap.h.746112 
xulrunner-17.0/mozilla-beta/js/src/gc/Heap.h
 a/js/src/gc/Heap.h.746112  2012-10-17 16:32:43.0 +0200
-+++ b/js/src/gc/Heap.h 2012-10-24 14:48:12.186640489 +0200
+Index: mozjs17.0.0/js/src/gc/Heap.h
+===
+--- mozjs17.0.0.orig/js/src/gc/Heap.h
 mozjs17.0.0/js/src/gc/Heap.h
 @@ -103,26 +103,31 @@ struct Cell
  };
  
@@ -28,7 +29,7 @@
  #if defined(SOLARIS)  (defined(__sparc) || defined(__sparcv9))
  const size_t PageShift = 13;
 +const size_t ArenaShift = PageShift;
-+#elif defined(__powerpc__)
++#elif defined(__powerpc__) || defined(__aarch64__)
 +const size_t PageShift = 16;
 +const size_t ArenaShift = 12;
  #else
@@ -50,9 +51,10 @@
  /*
   * This is the maximum number of arenas we allow in the FreeCommitted state
   * before we trigger a GC_SHRINK to release free arenas to the OS.
-diff -up xulrunner-17.0/mozilla-beta/js/src/jsgc.cpp.746112 
xulrunner-17.0/mozilla-beta/js/src/jsgc.cpp
 a/js/src/jsgc.cpp.746112   2012-10-17 16:32:44.0 +0200
-+++ b/js/src/jsgc.cpp  2012-10-24 14:46:28.253638095 +0200
+Index: mozjs17.0.0/js/src/jsgc.cpp
+===
+--- mozjs17.0.0.orig/js/src/jsgc.cpp
 mozjs17.0.0/js/src/jsgc.cpp
 @@ -251,6 +251,13 @@ static const int BackgroundPhaseLength[]
  sizeof(BackgroundPhaseStrings) / sizeof(AllocKind)
  };

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit mozjs17 for openSUSE:Factory

2014-02-26 Thread h_root
Hello community,

here is the log from the commit of package mozjs17 for openSUSE:Factory checked 
in at 2014-02-26 23:20:37

Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old)
 and  /work/SRC/openSUSE:Factory/.mozjs17.new (New)


Package is mozjs17

Changes:

--- /work/SRC/openSUSE:Factory/mozjs17/mozjs17.changes  2013-08-16 
13:13:58.0 +0200
+++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2014-02-26 
23:20:41.0 +0100
@@ -1,0 +2,10 @@
+Mon Feb 24 17:43:43 UTC 2014 - dval...@suse.com
+
+- Fix pagesize on pp64le (bnc#865154) 
+- Don't set WTF_CPU_BIG_ENDIAN on ppc64le 
+
+- added patches:
+  * mozbug746112-no-decommit-on-large-pages.patch
+  * mozjs-ppc64le-support.patch
+
+---

New:

  mozbug746112-no-decommit-on-large-pages.patch
  mozjs-ppc64le-support.patch



Other differences:
--
++ mozjs17.spec ++
--- /var/tmp/diff_new_pack.4F78mc/_old  2014-02-26 23:20:41.0 +0100
+++ /var/tmp/diff_new_pack.4F78mc/_new  2014-02-26 23:20:41.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mozjs17
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #   2013 Wolfgang Rosenauer
 #
 # All modifications and additions to the file contributed by third parties
@@ -29,6 +29,8 @@
 Patch0: mozjs-bmo618485-nojsuword.patch
 # PATCH-FIX-UPSTREAM add support for aarch64
 Patch1: mozjs-aarch64-support.patch
+Patch2: mozjs-ppc64le-support.patch
+Patch3: mozbug746112-no-decommit-on-large-pages.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf213
 BuildRequires:  gcc-c++
@@ -70,6 +72,8 @@
 %setup -q -n mozjs17.0.0
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 # no need to add build time to binaries

++ mozbug746112-no-decommit-on-large-pages.patch ++
# See https://bugzilla.redhat.com/show_bug.cgi?id=971519
# HG changeset patch
# User Terrence Cole terre...@mozilla.com
# Date 1346874025 25200
# Node ID 0558ede9693e57663e4836c7e678b55465ddc2ab
# Parent  d28e07f4bec6c16b32ae4743eaeeae2a9e2f6381
Bug 746112 - Don't decommit if page size is too large; r=billm

The powerpc architecture has 64KiB pages, which is too large to represent in the
free list.  This patch splits the page size from the arena size and disabled
decommit logic in that case.

diff -up xulrunner-17.0/mozilla-beta/js/src/gc/Heap.h.746112 
xulrunner-17.0/mozilla-beta/js/src/gc/Heap.h
--- a/js/src/gc/Heap.h.746112   2012-10-17 16:32:43.0 +0200
+++ b/js/src/gc/Heap.h  2012-10-24 14:48:12.186640489 +0200
@@ -103,26 +103,31 @@ struct Cell
 };
 
 /*
- * Page size is 4096 by default, except for SPARC, where it is 8192.
+ * Page size must be static to support our arena pointer optimizations, so we
+ * are forced to support each platform with non-4096 pages as a special case.
+ * Note: The freelist supports a maximum arena shift of 15.
  * Note: Do not use JS_CPU_SPARC here, this header is used outside JS.
  * Bug 692267: Move page size definition to gc/Memory.h and include it
  * directly once jsgc.h is no longer an installed header.
  */
 #if defined(SOLARIS)  (defined(__sparc) || defined(__sparcv9))
 const size_t PageShift = 13;
+const size_t ArenaShift = PageShift;
+#elif defined(__powerpc__)
+const size_t PageShift = 16;
+const size_t ArenaShift = 12;
 #else
 const size_t PageShift = 12;
+const size_t ArenaShift = PageShift;
 #endif
 const size_t PageSize = size_t(1)  PageShift;
+const size_t ArenaSize = size_t(1)  ArenaShift;
+const size_t ArenaMask = ArenaSize - 1;
 
 const size_t ChunkShift = 20;
 const size_t ChunkSize = size_t(1)  ChunkShift;
 const size_t ChunkMask = ChunkSize - 1;
 
-const size_t ArenaShift = PageShift;
-const size_t ArenaSize = PageSize;
-const size_t ArenaMask = ArenaSize - 1;
-
 /*
  * This is the maximum number of arenas we allow in the FreeCommitted state
  * before we trigger a GC_SHRINK to release free arenas to the OS.
diff -up xulrunner-17.0/mozilla-beta/js/src/jsgc.cpp.746112 
xulrunner-17.0/mozilla-beta/js/src/jsgc.cpp
--- a/js/src/jsgc.cpp.7461122012-10-17 16:32:44.0 +0200
+++ b/js/src/jsgc.cpp   2012-10-24 14:46:28.253638095 +0200
@@ -251,6 +251,13 @@ static const int BackgroundPhaseLength[]
 sizeof(BackgroundPhaseStrings) / sizeof(AllocKind)
 };
 
+/* Unused memory decommiting requires the arena size match the page size. */
+static bool
+DecommitEnabled()
+{
+return PageSize == ArenaSize;
+}
+
 #ifdef DEBUG
 void
 ArenaHeader::checkSynchronizedWithFreeList() const
@@ -742,7 +749,8 @@ Chunk::fetchNextDecommittedArena()
 

commit mozjs17 for openSUSE:Factory

2013-08-16 Thread h_root
Hello community,

here is the log from the commit of package mozjs17 for openSUSE:Factory checked 
in at 2013-08-16 13:13:51

Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old)
 and  /work/SRC/openSUSE:Factory/.mozjs17.new (New)


Package is mozjs17

Changes:

--- /work/SRC/openSUSE:Factory/mozjs17/mozjs17.changes  2013-06-05 
12:57:45.0 +0200
+++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2013-08-16 
13:13:58.0 +0200
@@ -1,0 +2,5 @@
+Tue Aug 13 10:56:46 UTC 2013 - sch...@suse.de
+
+- mozjs-aarch64-support.patch: Add support for aarch64
+
+---

New:

  mozjs-aarch64-support.patch



Other differences:
--
++ mozjs17.spec ++
--- /var/tmp/diff_new_pack.lmgsKv/_old  2013-08-16 13:13:59.0 +0200
+++ /var/tmp/diff_new_pack.lmgsKv/_new  2013-08-16 13:13:59.0 +0200
@@ -27,6 +27,8 @@
 Source0:http://ftp.mozilla.org/pub/mozilla.org/js/mozjs17.0.0.tar.gz
 #PATCH-FIX-UPSTREAM bmo#618485  64-bit big-endian jsval_layout is not defined, 
compile fails
 Patch0: mozjs-bmo618485-nojsuword.patch
+# PATCH-FIX-UPSTREAM add support for aarch64
+Patch1: mozjs-aarch64-support.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf213
 BuildRequires:  gcc-c++
@@ -67,6 +69,7 @@
 %prep
 %setup -q -n mozjs17.0.0
 %patch0 -p1
+%patch1 -p1
 
 %build
 # no need to add build time to binaries

++ mozjs-aarch64-support.patch ++
Index: mozjs17.0.0/mfbt/double-conversion/utils.h
===
--- mozjs17.0.0.orig/mfbt/double-conversion/utils.h
+++ mozjs17.0.0/mfbt/double-conversion/utils.h
@@ -58,7 +58,7 @@
 defined(__mips__) || defined(__powerpc__) || \
 defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
 defined(__SH4__) || defined(__alpha__) || \
-defined(_MIPS_ARCH_MIPS32R2)
+defined(_MIPS_ARCH_MIPS32R2) || defined(__aarch64__)
 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
 #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
 #if defined(_WIN32)
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit mozjs17 for openSUSE:Factory

2013-06-05 Thread h_root
Hello community,

here is the log from the commit of package mozjs17 for openSUSE:Factory checked 
in at 2013-06-05 12:57:44

Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old)
 and  /work/SRC/openSUSE:Factory/.mozjs17.new (New)


Package is mozjs17

Changes:

--- /work/SRC/openSUSE:Factory/mozjs17/mozjs17.changes  2013-05-27 
09:54:07.0 +0200
+++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2013-06-05 
12:57:45.0 +0200
@@ -1,0 +2,6 @@
+Tue Jun  4 15:25:17 UTC 2013 - dval...@suse.com
+
+- Remove jsuword. (bmo#618485)
+  mozjs-bmo618485-nojsuword.patch 
+
+---

New:

  mozjs-bmo618485-nojsuword.patch



Other differences:
--
++ mozjs17.spec ++
--- /var/tmp/diff_new_pack.AmlO5O/_old  2013-06-05 12:57:45.0 +0200
+++ /var/tmp/diff_new_pack.AmlO5O/_new  2013-06-05 12:57:45.0 +0200
@@ -19,12 +19,14 @@
 
 Name:   mozjs17
 Summary:JavaScript interpreter
-Version:17.0
-Release:1
 License:MPL-2.0 and GPL-2.0+
 Group:  System/Libraries
+Version:17.0
+Release:0
 Url:http://www.mozilla.org/js/
 Source0:http://ftp.mozilla.org/pub/mozilla.org/js/mozjs17.0.0.tar.gz
+#PATCH-FIX-UPSTREAM bmo#618485  64-bit big-endian jsval_layout is not defined, 
compile fails
+Patch0: mozjs-bmo618485-nojsuword.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf213
 BuildRequires:  gcc-c++
@@ -64,6 +66,7 @@
 
 %prep
 %setup -q -n mozjs17.0.0
+%patch0 -p1
 
 %build
 # no need to add build time to binaries

++ mozjs-bmo618485-nojsuword.patch ++
Index: mozjs17.0.0/js/src/jsval.h
===
--- mozjs17.0.0.orig/js/src/jsval.h
+++ mozjs17.0.0/js/src/jsval.h
@@ -304,7 +304,6 @@ typedef union jsval_layout
 int32_ti32;
 uint32_t   u32;
 JSWhyMagic why;
-jsuwordword;
 } payload;
 } s;
 double asDouble;
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit mozjs17 for openSUSE:Factory

2013-05-27 Thread h_root
Hello community,

here is the log from the commit of package mozjs17 for openSUSE:Factory checked 
in at 2013-05-27 09:54:06

Comparing /work/SRC/openSUSE:Factory/mozjs17 (Old)
 and  /work/SRC/openSUSE:Factory/.mozjs17.new (New)


Package is mozjs17

Changes:

New Changes file:

--- /dev/null   2013-05-23 01:40:31.032032505 +0200
+++ /work/SRC/openSUSE:Factory/.mozjs17.new/mozjs17.changes 2013-05-27 
09:54:07.0 +0200
@@ -0,0 +1,11 @@
+---
+Tue May 21 12:10:23 UTC 2013 - cfarr...@suse.com
+
+- license update: MPL-2.0 and GPL-2.0+
+  Numerous GPL-2.0+ files used in aggregation (particularly ctypes/libffi)
+
+---
+Fri May 17 13:35:32 UTC 2013 - w...@rosenauer.org
+
+- initial mozjs17 package
+

New:

  baselibs.conf
  mozjs17.0.0.tar.gz
  mozjs17.changes
  mozjs17.spec



Other differences:
--
++ mozjs17.spec ++
#
# spec file for package mozjs17
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#   2013 Wolfgang Rosenauer
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An Open Source License is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:   mozjs17
Summary:JavaScript interpreter
Version:17.0
Release:1
License:MPL-2.0 and GPL-2.0+
Group:  System/Libraries
Url:http://www.mozilla.org/js/
Source0:http://ftp.mozilla.org/pub/mozilla.org/js/mozjs17.0.0.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf213
BuildRequires:  gcc-c++
BuildRequires:  mozilla-nspr-devel
BuildRequires:  pkg-config
BuildRequires:  python
BuildRequires:  readline-devel
BuildRequires:  zip

%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n libmozjs-17_0
Summary:JavaScript library
Group:  System/Libraries

%description -n libmozjs-17_0
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package devel
Summary:Header files, libraries and development documentation for 
%{name}
Group:  Development/Libraries/Other
Requires:   libmozjs-17_0 = %{version}-%{release}
Requires:   pkg-config
Provides:   mozjs17-devel = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -q -n mozjs17.0.0

%build
# no need to add build time to binaries
modified=$(sed -n '/^/n;s/ - .*$//;p;q' %{_sourcedir}/%{name}.changes)
DATE=\$(date -d ${modified} +%%b %%e %%Y)\
TIME=\$(date -d ${modified} +%%R)\
find . -regex .*\.c\|.*\.cpp\|.*\.h -exec sed -i 
s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g {} +
#
cd js/src
%configure --disable-static --with-system-nspr --enable-threadsafe 
--enable-readline
%{__make} %{?_smp_mflags}

%install
cd js/src
%{makeinstall}
# Upstream does not honor --disable-static yet
%{__rm} -rf %{buildroot}%{_libdir}/libmozjs-17.0.a
# This is also statically linked; once that is fixed that we could
# consider shipping it.
rm -f %{buildroot}%{_bindir}/js17
# delete js-config since everything should use the pkg-config file
rm -f %{buildroot}%{_bindir}/js17-config
# headers are installed with executable permissions
find %{buildroot}%{_includedir}/js-17.0/ -type f -print | xargs chmod 644
chmod 644 %{buildroot}%{_libdir}/pkgconfig/*

%clean
%{__rm} -rf %{buildroot}

%post -n libmozjs-17_0 -p /sbin/ldconfig

%postun -n libmozjs-17_0 -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc js/src/README.html
#%{_bindir}/js17

%files -n libmozjs-17_0
%defattr(-,root,root,-)
%{_libdir}/*.so

%files devel