Fix iOS mmap and TypedArray issue
This commit is contained in:
parent
c715b458cf
commit
1a0fd89c60
|
|
@ -77,11 +77,11 @@ enum ThreadType {
|
||||||
# if defined(DEBUG) || defined(JS_OOM_BREAKPOINT)
|
# if defined(DEBUG) || defined(JS_OOM_BREAKPOINT)
|
||||||
extern bool InitThreadType(void);
|
extern bool InitThreadType(void);
|
||||||
extern void SetThreadType(ThreadType);
|
extern void SetThreadType(ThreadType);
|
||||||
extern uint32_t GetThreadType(void);
|
extern JS_PUBLIC_API(uint32_t) GetThreadType(void);
|
||||||
# else
|
# else
|
||||||
inline bool InitThreadType(void) { return true; }
|
inline bool InitThreadType(void) { return true; }
|
||||||
inline void SetThreadType(ThreadType t) {};
|
inline void SetThreadType(ThreadType t) {};
|
||||||
inline uint32_t GetThreadType(void) { return 0; }
|
inline JS_PUBLIC_API(uint32_t) GetThreadType(void) { return 0; }
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
} /* namespace oom */
|
} /* namespace oom */
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ class SystemAllocPolicy
|
||||||
};
|
};
|
||||||
|
|
||||||
class ExclusiveContext;
|
class ExclusiveContext;
|
||||||
void ReportOutOfMemory(ExclusiveContext* cxArg);
|
JS_PUBLIC_API(void) ReportOutOfMemory(ExclusiveContext* cxArg);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allocation policy that calls the system memory functions and reports errors
|
* Allocation policy that calls the system memory functions and reports errors
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue