Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "native_client/src/include/concurrency_ops.h" | 9 #include "native_client/src/include/concurrency_ops.h" |
| 10 #include "native_client/src/include/nacl_platform.h" | 10 #include "native_client/src/include/nacl_platform.h" |
| (...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 970 /* | 970 /* |
| 971 * Still waiting for some threads to report in... | 971 * Still waiting for some threads to report in... |
| 972 */ | 972 */ |
| 973 retval = -NACL_ABI_EAGAIN; | 973 retval = -NACL_ABI_EAGAIN; |
| 974 } | 974 } |
| 975 | 975 |
| 976 cleanup_unlock: | 976 cleanup_unlock: |
| 977 NaClXMutexUnlock(&nap->dynamic_load_mutex); | 977 NaClXMutexUnlock(&nap->dynamic_load_mutex); |
| 978 return retval; | 978 return retval; |
| 979 } | 979 } |
| 980 | |
| 981 int32_t NaClHasSegmentGapForDyncode(struct NaClApp *nap) { | |
| 982 return nap->dynamic_text_start != nap->dynamic_text_end; | |
|
Mark Seaborn
2012/06/28 22:05:11
I would suggest checking whether nap->text_shm is
jvoung (off chromium)
2012/06/28 22:41:56
Done.
| |
| 983 } | |
| OLD | NEW |