Skip to content

Commit

Permalink
runtime: fix typo of MADV_NOHUGEPAGE
Browse files Browse the repository at this point in the history
Change-Id: I60a1ca606fe7492c05697c4d58afc7f19fcc63fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/203340
Reviewed-by: Tobias Klauser <[email protected]>
Run-TryBot: Tobias Klauser <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
mengzhuo authored and tklauser committed Oct 25, 2019
1 parent 3c25e5e commit 9a70101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/defs2_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const (
MADV_DONTNEED = C.MADV_DONTNEED
MADV_FREE = C.MADV_FREE
MADV_HUGEPAGE = C.MADV_HUGEPAGE
MADV_NOHUGEPAGE = C.MADV_HNOUGEPAGE
MADV_NOHUGEPAGE = C.MADV_NOHUGEPAGE

SA_RESTART = C.SA_RESTART
SA_ONSTACK = C.SA_ONSTACK
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/defs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const (
MADV_DONTNEED = C.MADV_DONTNEED
MADV_FREE = C.MADV_FREE
MADV_HUGEPAGE = C.MADV_HUGEPAGE
MADV_NOHUGEPAGE = C.MADV_HNOUGEPAGE
MADV_NOHUGEPAGE = C.MADV_NOHUGEPAGE

SA_RESTART = C.SA_RESTART
SA_ONSTACK = C.SA_ONSTACK
Expand Down

0 comments on commit 9a70101

Please sign in to comment.