mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
1dbae404b4
this would expose the deadlock bug, which has been fixed by https://github.com/bytecodealliance/wasm-micro-runtime/pull/2882
28 lines
439 B
C
28 lines
439 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
*/
|
|
|
|
/*
|
|
* have something in bss so that llvm synthesizes
|
|
* wasm start function for this module.
|
|
*/
|
|
char *
|
|
return_bss()
|
|
{
|
|
static char bss[4096];
|
|
return bss;
|
|
}
|
|
|
|
int
|
|
sum(int start, int length)
|
|
{
|
|
int sum = 0, i;
|
|
|
|
for (i = start; i < start + length; i++) {
|
|
sum += i;
|
|
}
|
|
|
|
return sum;
|
|
}
|