volatile是什么? volatile是JVM提供的一种轻量级的同步机制,其具有三个特性。 保证可见性 不保证原子性 禁止指令重排 保证可见性 JMM(java memory model)中文翻译为Java内存模型,是JVM下的一种规范,规定了JVM对于程序在内存中的变量应该以什么样的一样形式进 ...
分类:
编程语言 时间:
2020-01-23 19:56:10
阅读次数:
99
以下文章来源于花椒技术 ,作者花椒服务端 前言 内存泄漏(Memory Leak)是指程序中己动态分配的堆内存由于某种原因程序未释放或无法释放,造成系统内存的浪费,导致程序运行速度减慢甚至系统崩溃等严重后果。 Java是由C++发展来的,抛弃了C++中一些繁琐容易出错的东西,程序员忘记或者错误的内存 ...
分类:
其他好文 时间:
2020-01-21 18:28:41
阅读次数:
103
0. 1. strcpy() function #include <string.h> char* strcpy(char* destination, const char* source); 2. Allocating Memory dynamically: (1) void* malloc(in ...
分类:
其他好文 时间:
2020-01-21 13:36:25
阅读次数:
85
0. 1. std::shared_ptr is a smart pointer that retains shared ownership of an object through a pointer. Several shared_ptr objects may own the same obj ...
分类:
编程语言 时间:
2020-01-21 00:40:14
阅读次数:
103
0. Problem There is no memory leak of the following code, but there are problems. void memory_leak(){ ClassA *ptr = new ClassA(); /* if return here, t ...
分类:
编程语言 时间:
2020-01-20 22:46:08
阅读次数:
94
在上一篇文章:《闪电光速拳? .NetCore 中的Span》中我们提到了在.net core 2.x 所新增的一个类型:Span。但是您会发现它无法用在我们项目的某些地方,它独特的 ref结构 使它没有办法跨线程使用、更没有办法使用Lambda表达式。所以,这个时候如果我们又想跨线程操作数据又想获... ...
分类:
其他好文 时间:
2020-01-20 19:25:27
阅读次数:
99
SAP 内存管理及常见问题 1.基于OS的分类和基于SAP的分类 2.内存的相关参数 2.1 EXtended Memory 2.2 Heap Memory 2.3 paging Memory 3.不同SAP kernel 内存的相关参数 4. 内存的分配次序 5. 操作系统的差异 note: 78 ...
分类:
其他好文 时间:
2020-01-20 15:02:51
阅读次数:
187
前提 今天( )在编写 相关代码的时候,从 源码中的 和`GlobalEventExecutor ContextClassLoader Issue`: "ThreadDeathWatcher causes custom classLoader script memory leaks" "Ensure ...
分类:
编程语言 时间:
2020-01-20 09:20:50
阅读次数:
80
I can find it in system monitor. but, [systemctl list-unit-files | grep mysql ] did not show anything. After googled, I found it belong to akonadi whi ...
分类:
数据库 时间:
2020-01-18 22:49:26
阅读次数:
165
今天在做项目的优化的时候,使用chrome开发者工具的network发现了细节: 虽然这两个看起来都是从缓存中读取,但还是有一些不一样的! webkit资源的分类 webkit的资源分类主要分为两大类:主资源和派生资源 http状态码 200 from memory cache 不访问服务器,直接读 ...
分类:
系统相关 时间:
2020-01-18 14:28:32
阅读次数:
92