Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
aedfaaec
Commit
aedfaaec
authored
Jan 30, 2018
by
ZhiWei Zhang
Committed by
Tianqi Chen
Jan 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed #841 (#845)
* Update workspace_pool.cc * Update workspace_pool.cc
parent
9206ee9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/runtime/workspace_pool.cc
+4
-1
No files found.
src/runtime/workspace_pool.cc
View file @
aedfaaec
...
@@ -28,7 +28,10 @@ class WorkspacePool::Pool {
...
@@ -28,7 +28,10 @@ class WorkspacePool::Pool {
nbytes
=
(
nbytes
+
(
kWorkspacePageSize
-
1
))
/
kWorkspacePageSize
*
kWorkspacePageSize
;
nbytes
=
(
nbytes
+
(
kWorkspacePageSize
-
1
))
/
kWorkspacePageSize
*
kWorkspacePageSize
;
if
(
nbytes
==
0
)
nbytes
=
kWorkspacePageSize
;
if
(
nbytes
==
0
)
nbytes
=
kWorkspacePageSize
;
Entry
e
;
Entry
e
;
TVMType
type
=
{.
code
=
kDLUInt
,
.
bits
=
8
,
.
lanes
=
1
};
TVMType
type
;
type
.
code
=
kDLUInt
;
type
.
bits
=
8
;
type
.
lanes
=
1
;
if
(
free_list_
.
size
()
==
2
)
{
if
(
free_list_
.
size
()
==
2
)
{
e
=
free_list_
.
back
();
e
=
free_list_
.
back
();
free_list_
.
pop_back
();
free_list_
.
pop_back
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment