~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to system/lib/dlmalloc.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
 
2
/* XXX Emscripten XXX */
 
3
#if EMSCRIPTEN
 
4
#define DLMALLOC_EXPORT __attribute__((__weak__, __visibility__("default")))
 
5
/* mmap uses malloc, so malloc can't use mmap */
 
6
#define HAVE_MMAP 0
 
7
/* we can only grow the heap up anyhow, so don't try to trim */
 
8
#define MORECORE_CANNOT_TRIM 1
 
9
#endif
 
10
 
 
11
 
2
12
#define __THROW
3
13
#define __attribute_malloc__
4
14
#define __wur
532
542
#define DLMALLOC_VERSION 20806
533
543
#endif /* DLMALLOC_VERSION */
534
544
 
535
 
#if EMSCRIPTEN
536
 
#define DLMALLOC_EXPORT __attribute__((__weak__, __visibility__("default")))
537
 
#endif
538
 
 
539
545
#ifndef DLMALLOC_EXPORT
540
546
#define DLMALLOC_EXPORT extern
541
547
#endif
647
653
#define MALLOC_INSPECT_ALL 0
648
654
#endif  /* MALLOC_INSPECT_ALL */
649
655
#ifndef HAVE_MMAP
650
 
/* XXX Emscripten
651
 
 * mmap uses malloc, so malloc can't use mmap
652
 
 */
653
 
#ifdef EMSCRIPTEN
654
 
#define HAVE_MMAP 0
655
 
#else
656
656
#define HAVE_MMAP 1
657
 
#endif
658
 
 
659
657
#endif  /* HAVE_MMAP */
660
658
#ifndef MMAP_CLEARS
661
659
#define MMAP_CLEARS 1